Merge pull request #1 from ayokura/prevent-esc

Prevent to press ESC key
pull/984/head
lepidum 2012-08-30 02:06:33 -07:00
commit 596f0bbb4e
1 changed files with 7 additions and 0 deletions

View File

@ -3514,6 +3514,13 @@ function Ace2Inner(){
var keyCode = evt.keyCode; var keyCode = evt.keyCode;
var which = evt.which; var which = evt.which;
// prevent ESC key
if (keyCode == 27)
{
evt.preventDefault();
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.