From 2e8d62a1e3285e5bdc8332ff18ca7e373f45343f Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Thu, 10 Feb 2011 23:25:13 +0800 Subject: [PATCH] Reverting change back to fix the regression: https://github.com/ajaxorg/ace/commit/be6646ba3555edc80ac1d872f3b030856e66fe10 --- 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 b887cd4d..5861ad23 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 == "" || key == String.fromCharCode(0))) { + if (hashId != 0 && (key == "" || String.fromCharCode(0))) { return null; }