consistency
This commit is contained in:
parent
bd5ee5816a
commit
6ef1b50052
@ -730,12 +730,9 @@
|
||||
if (((_ref = e.target.nodeName) === 'TEXTAREA' || _ref === 'INPUT') && !e.altKey && !e.ctrlKey && !(e.keyCode === 27)) {
|
||||
return;
|
||||
}
|
||||
if (!(key = keybinds.cb.keyCode(e))) {
|
||||
if ((key = keybinds.cb.keyCode(e)) == null) {
|
||||
return;
|
||||
}
|
||||
if (key === 'BS') {
|
||||
key = '';
|
||||
}
|
||||
thread = nav.getThread();
|
||||
switch (key) {
|
||||
case conf.close:
|
||||
|
||||
@ -520,8 +520,7 @@ keybinds =
|
||||
cb:
|
||||
keydown: (e) ->
|
||||
return if e.target.nodeName in ['TEXTAREA', 'INPUT'] and not e.altKey and not e.ctrlKey and not (e.keyCode is 27)
|
||||
return unless key = keybinds.cb.keyCode e
|
||||
if key is 'BS' then key = ''
|
||||
return unless (key = keybinds.cb.keyCode e)?
|
||||
|
||||
thread = nav.getThread()
|
||||
switch key
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user