On enter, submit content editable.

On the enter key, the value of the content editable box should be
submitted.
This commit is contained in:
Brock Whittaker
2017-01-27 12:09:46 -08:00
parent 14b471a29f
commit ac710be9ae

View File

@@ -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;
}