mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08: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:
parent
14b471a29f
commit
ac710be9ae
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user