From 69f0392e75534e9340f6349c5af3a765454ec78a Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 26 Mar 2015 11:24:06 +0000 Subject: escape to exit editbar --- src/static/js/pad_editbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/static/js') diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 022e9493..a16cc63f 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -310,7 +310,7 @@ var padeditbar = (function() function editbarKeyEvent(evt){ // If the event is Alt F9 (we're already in the editbar menu // Send the users focus back to the pad - if(evt.keyCode === 120){ + if(evt.keyCode === 120 || evt.keyCode === 27){ // If we're in the editbar already.. $(':focus').blur(); // required to do not try to remove! padeditor.ace.focus(); // Sends focus back -- cgit v1.2.3