From 203bafb79eccb3bc9576e6820a909287d2833b36 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 11 Feb 2016 06:57:50 -0500 Subject: [PATCH] fixup esc key binding --- src/web/js/events.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/js/events.js b/src/web/js/events.js index da8f07277e..df4d56b604 100644 --- a/src/web/js/events.js +++ b/src/web/js/events.js @@ -21,6 +21,9 @@ if (ev.keyCode === 27) { // Handle ESC key. $('input').select(); + Ui.clearInput(); + Ui.clearSuggestedWords(); + Ui.setFromInput(''); } },