mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
fix prevent ESC key patch
This commit is contained in:
parent
521e76ae44
commit
55cf1cabb5
1 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue