use key instead of e

This commit is contained in:
James Campos 2012-06-03 18:51:05 -07:00
parent ca93066d0a
commit 6c1b33ba59
2 changed files with 2 additions and 2 deletions

View File

@ -1060,7 +1060,7 @@
}
target = e.target;
if (/TEXTAREA|INPUT/.test(target.nodeName)) {
if (!(e.altKey || e.ctrlKey || e.keyCode === 27)) {
if (!((key === 'Esc') || (/\+/.test(key)))) {
return;
}
}

View File

@ -796,7 +796,7 @@ Keybinds =
return unless key = Kebinds.keyCode e
{target} = e
if /TEXTAREA|INPUT/.test target.nodeName
return unless e.altKey or e.ctrlKey or e.keyCode is 27
return unless (key is 'Esc') or (/\+/.test key)
thread = Nav.getThread()
switch key