fix prevent ESC key patch

This commit is contained in:
NAGOYA, Yoshihiko 2012-08-30 13:20:30 +09:00 committed by ayokura/NAGOYA, Yoshihiko
parent 521e76ae44
commit 55cf1cabb5

View file

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