summaryrefslogtreecommitdiff
path: root/src/static/js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-03-26 11:24:06 +0000
committerJohn McLear <john@mclear.co.uk>2015-03-26 11:24:06 +0000
commit69f0392e75534e9340f6349c5af3a765454ec78a (patch)
tree5d08cca3e579409b1501ca2267e0abdf525c0144 /src/static/js
parente67ae522e22afedac8585209eabdd3f388a24c78 (diff)
downloadetherpad-lite-69f0392e75534e9340f6349c5af3a765454ec78a.zip
escape to exit editbar
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/pad_editbar.js2
1 files changed, 1 insertions, 1 deletions
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