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)) {
|
if (((_ref = e.target.nodeName) === 'TEXTAREA' || _ref === 'INPUT') && !e.altKey && !e.ctrlKey && !(e.keyCode === 27)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(key = keybinds.cb.keyCode(e))) {
|
if ((key = keybinds.cb.keyCode(e)) == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (key === 'BS') {
|
|
||||||
key = '';
|
|
||||||
}
|
|
||||||
thread = nav.getThread();
|
thread = nav.getThread();
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case conf.close:
|
case conf.close:
|
||||||
|
|||||||
@ -520,8 +520,7 @@ keybinds =
|
|||||||
cb:
|
cb:
|
||||||
keydown: (e) ->
|
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 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)?
|
||||||
if key is 'BS' then key = ''
|
|
||||||
|
|
||||||
thread = nav.getThread()
|
thread = nav.getThread()
|
||||||
switch key
|
switch key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user