mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 20:26:49 +02:00
Merge pull request #1 from ayokura/prevent-esc
Prevent to press ESC key
This commit is contained in:
commit
596f0bbb4e
@ -3514,6 +3514,13 @@ function Ace2Inner(){
|
||||
var keyCode = evt.keyCode;
|
||||
var which = evt.which;
|
||||
|
||||
// prevent ESC key
|
||||
if (keyCode == 27)
|
||||
{
|
||||
evt.preventDefault();
|
||||
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…
x
Reference in New Issue
Block a user