mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
On enter, submit content editable.
On the enter key, the value of the content editable box should be submitted.
This commit is contained in:
@@ -119,6 +119,9 @@ function process_hotkey(e) {
|
||||
}
|
||||
|
||||
if ($(e.target).is(".editable-section")) {
|
||||
if (event_name === "enter") {
|
||||
$(e.target).parent().find(".checkmark").click();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user