From be6646ba3555edc80ac1d872f3b030856e66fe10 Mon Sep 17 00:00:00 2001 From: Julian Viereck Date: Fri, 28 Jan 2011 19:01:58 +0800 Subject: [PATCH] Fix bug in StateHandler that broke emacs handler --- lib/ace/keyboard/state_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/keyboard/state_handler.js b/lib/ace/keyboard/state_handler.js index 5861ad23..b887cd4d 100644 --- a/lib/ace/keyboard/state_handler.js +++ b/lib/ace/keyboard/state_handler.js @@ -197,7 +197,7 @@ StateHandler.prototype = { // If we pressed any command key but no other key, then ignore the input. // Otherwise "shift-" is added to the buffer, and later on "shift-g" // which results in "shift-shift-g" which doesn't make senese. - if (hashId != 0 && (key == "" || String.fromCharCode(0))) { + if (hashId != 0 && (key == "" || key == String.fromCharCode(0))) { return null; }