diff options
author | NAGOYA, Yoshihiko <nagoya@lepidum.co.jp> | 2012-08-30 13:20:30 +0900 |
---|---|---|
committer | ayokura/NAGOYA, Yoshihiko <nagoya@lepidum.co.jp> | 2012-08-30 13:24:35 +0900 |
commit | 55cf1cabb586f07789d9790eb5336e8c20893c63 (patch) | |
tree | 9dd6912f6e64b81abf89a55a9fbee73304404a02 /src/static/js/ace2_inner.js | |
parent | 521e76ae4461e058970aac559b063902be64560e (diff) | |
download | etherpad-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.js | 6 |
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. |