diff --git a/examples/reference/chat/ChatAreaInput.ipynb b/examples/reference/chat/ChatAreaInput.ipynb index ca80644a21..474c3af301 100644 --- a/examples/reference/chat/ChatAreaInput.ipynb +++ b/examples/reference/chat/ChatAreaInput.ipynb @@ -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", diff --git a/panel/chat/input.py b/panel/chat/input.py index 41d9abe582..b7654aea77 100644 --- a/panel/chat/input.py +++ b/panel/chat/input.py @@ -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