diff --git a/4chan_x.user.js b/4chan_x.user.js index 7a186f806..27a3a0412 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1055,7 +1055,7 @@ }, keydown: function(e) { var key, link, o, target, thread; - if (!(key = Kebinds.keyCode(e))) { + if (!(key = Keybinds.keyCode(e))) { return; } target = e.target; diff --git a/script.coffee b/script.coffee index aae97b628..a2e3fcf7c 100644 --- a/script.coffee +++ b/script.coffee @@ -793,7 +793,7 @@ Keybinds = $.on d, 'keydown', Keybinds.keydown keydown: (e) -> - return unless key = Kebinds.keyCode e + return unless key = Keybinds.keyCode e {target} = e if /TEXTAREA|INPUT/.test target.nodeName return unless (key is 'Esc') or (/\+/.test key)