consistency

This commit is contained in:
James Campos 2011-07-24 11:40:52 -07:00
parent bd5ee5816a
commit 6ef1b50052
2 changed files with 2 additions and 6 deletions

View File

@ -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:

View File

@ -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