Skip to content

Commit

Permalink
Merge pull request #1 from ayokura/prevent-esc
Browse files Browse the repository at this point in the history
Prevent to press ESC key
  • Loading branch information
lepidum committed Aug 30, 2012
2 parents 7f9edd1 + 55cf1ca commit 596f0bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/static/js/ace2_inner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 596f0bb

Please sign in to comment.