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; target = e.target;
if (/TEXTAREA|INPUT/.test(target.nodeName)) { if (/TEXTAREA|INPUT/.test(target.nodeName)) {
if (!(e.altKey || e.ctrlKey || e.keyCode === 27)) { if (!((key === 'Esc') || (/\+/.test(key)))) {
return; return;
} }
} }

View File

@ -796,7 +796,7 @@ Keybinds =
return unless key = Kebinds.keyCode e return unless key = Kebinds.keyCode e
{target} = e {target} = e
if /TEXTAREA|INPUT/.test target.nodeName 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() thread = Nav.getThread()
switch key switch key