Skip to content

Commit

Permalink
update enter pressed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Dec 17, 2024
1 parent 1284432 commit 96810d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/reference/chat/ChatAreaInput.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"* **``enter_sends``** (bool): If True, pressing the Enter key sends the message, if False it is sent by pressing the Ctrl-Enter. Defaults to True.\n",
"* **``value``** (str): The value when the \"Enter\" or \"Ctrl-Enter\" key is pressed. Only to be used with `watch` or `bind` because the `value` resets to `\"\"` after the message is sent; use `value_input` instead to access what's currently available in the text input box.\n",
"* **``value_input``** (str): The current value updated on every key press.\n",
"* **`enter_pressed`** (bool): Event when the Enter/Ctrl+Enter key has been pressed.\n",
"\n",
"##### Display\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion panel/chat/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ChatAreaInput(_PnTextAreaInput):
)

enter_pressed = param.Event(doc="""
Event when the enter key has been pressed.""")
Event when the Enter/Ctrl+Enter key has been pressed.""")

_widget_type: ClassVar[type[Model]] = _bkChatAreaInput

Expand Down

0 comments on commit 96810d8

Please sign in to comment.