From ac710be9ae52041dfcecd66ef4e2ddeb6daea093 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Fri, 27 Jan 2017 12:09:46 -0800 Subject: [PATCH] On enter, submit content editable. On the enter key, the value of the content editable box should be submitted. --- static/js/hotkey.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/hotkey.js b/static/js/hotkey.js index 7e33c7fea9..a2772aff4a 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -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; }