no need for null
This commit is contained in:
parent
6ef1b50052
commit
92d082891b
@ -730,7 +730,7 @@
|
||||
if (((_ref = e.target.nodeName) === 'TEXTAREA' || _ref === 'INPUT') && !e.altKey && !e.ctrlKey && !(e.keyCode === 27)) {
|
||||
return;
|
||||
}
|
||||
if ((key = keybinds.cb.keyCode(e)) == null) {
|
||||
if (!(key = keybinds.cb.keyCode(e))) {
|
||||
return;
|
||||
}
|
||||
thread = nav.getThread();
|
||||
|
||||
@ -520,7 +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)?
|
||||
return unless key = keybinds.cb.keyCode e
|
||||
|
||||
thread = nav.getThread()
|
||||
switch key
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user