summaryrefslogtreecommitdiff
path: root/src/static/js/ace2_inner.js
diff options
context:
space:
mode:
authorNAGOYA, Yoshihiko <nagoya@lepidum.co.jp>2012-08-30 13:20:30 +0900
committerayokura/NAGOYA, Yoshihiko <nagoya@lepidum.co.jp>2012-08-30 13:24:35 +0900
commit55cf1cabb586f07789d9790eb5336e8c20893c63 (patch)
tree9dd6912f6e64b81abf89a55a9fbee73304404a02 /src/static/js/ace2_inner.js
parent521e76ae4461e058970aac559b063902be64560e (diff)
downloadetherpad-lite-55cf1cabb586f07789d9790eb5336e8c20893c63.zip
fix prevent ESC key patch
Diffstat (limited to 'src/static/js/ace2_inner.js')
-rw-r--r--src/static/js/ace2_inner.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index 34cfba1e..07580faa 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -3515,7 +3515,11 @@ function Ace2Inner(){
var which = evt.which;
// prevent ESC key
- if (keyCode == 27) return;
+ if (keyCode == 27)
+ {
+ evt.preventDefault();
+ return;
+ }
//dmesg("keyevent type: "+type+", which: "+which);
// Don't take action based on modifier keys going up and down.