God, damnit.

This commit is contained in:
Nicolas Stepien 2011-06-25 03:11:11 +02:00
parent 23d6341966
commit d53de5d1cc
2 changed files with 2 additions and 2 deletions

View File

@ -746,7 +746,7 @@
cb: { cb: {
keydown: function(e) { keydown: function(e) {
var key, o, qr, range, selEnd, selStart, ta, thread, valEnd, valMid, valStart, value, _ref, _ref2, _ref3; var key, o, qr, range, selEnd, selStart, ta, thread, valEnd, valMid, valStart, value, _ref, _ref2, _ref3;
if (((_ref = d.activeElement.nodeName) === 'TEXTAREA' || _ref === 'INPUT') && !e.altKey && !e.ctrlKey && !e.keyCode === 27) { if (((_ref = d.activeElement.nodeName) === 'TEXTAREA' || _ref === 'INPUT') && !e.altKey && !e.ctrlKey && !(e.keyCode === 27)) {
return; return;
} }
key = keybinds.cb.keyCode(e); key = keybinds.cb.keyCode(e);

View File

@ -539,7 +539,7 @@ keybinds =
cb: cb:
keydown: (e) -> keydown: (e) ->
return if d.activeElement.nodeName in ['TEXTAREA', 'INPUT'] and not e.altKey and not e.ctrlKey and not e.keyCode is 27 return if d.activeElement.nodeName in ['TEXTAREA', 'INPUT'] and not e.altKey and not e.ctrlKey and not (e.keyCode is 27)
key = keybinds.cb.keyCode e key = keybinds.cb.keyCode e
if e.altKey then key = 'alt+' + key if e.altKey then key = 'alt+' + key
if e.ctrlKey then key = 'ctrl+' + key if e.ctrlKey then key = 'ctrl+' + key