Merge pull request #530 from adamjimenez/patch-4

fix for binding ctrl-;
This commit is contained in:
Zef Hemel 2011-11-24 04:27:43 -08:00
commit 9d1c25eb1b

View file

@ -277,7 +277,7 @@ function normalizeCommandKeys(callback, e, keyCode) {
// If there is no hashID and the keyCode is not a function key, then
// we don't call the callback as we don't handle a command key here
// (it's a normal key/character input).
if (!(keyCode in keys.FUNCTION_KEYS) && !(keyCode in keys.PRINTABLE_KEYS)) {
if (!hashId && !(keyCode in keys.FUNCTION_KEYS) && !(keyCode in keys.PRINTABLE_KEYS)) {
return false;
}
return callback(e, hashId, keyCode);