Fix bug in StateHandler that broke emacs handler

This commit is contained in:
Julian Viereck 2011-01-28 19:01:58 +08:00 • committed by Fabian Jakobs
commit be6646ba35

View file

@ -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;
}