use key instead of e
This commit is contained in:
parent
ca93066d0a
commit
6c1b33ba59
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user