mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
prevent ESC key
This commit is contained in:
parent
7f9edd1df1
commit
521e76ae44
1 changed files with 3 additions and 0 deletions
|
@ -3514,6 +3514,9 @@ function Ace2Inner(){
|
|||
var keyCode = evt.keyCode;
|
||||
var which = evt.which;
|
||||
|
||||
// prevent ESC key
|
||||
if (keyCode == 27) return;
|
||||
|
||||
//dmesg("keyevent type: "+type+", which: "+which);
|
||||
// Don't take action based on modifier keys going up and down.
|
||||
// Modifier keys do not generate "keypress" events.
|
||||
|
|
Loading…
Reference in a new issue