mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +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 keyCode = evt.keyCode;
|
||||||
var which = evt.which;
|
var which = evt.which;
|
||||||
|
|
||||||
|
// prevent ESC key
|
||||||
|
if (keyCode == 27) return;
|
||||||
|
|
||||||
//dmesg("keyevent type: "+type+", which: "+which);
|
//dmesg("keyevent type: "+type+", which: "+which);
|
||||||
// Don't take action based on modifier keys going up and down.
|
// Don't take action based on modifier keys going up and down.
|
||||||
// Modifier keys do not generate "keypress" events.
|
// Modifier keys do not generate "keypress" events.
|
||||||
|
|
Loading…
Reference in a new issue