From 05de96fd0b576e32a78a81416d8de9eb1d8c1dd9 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Fri, 16 May 2014 09:25:51 -0700 Subject: [PATCH] Try again on zixaphir/appchan-x#724 --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Miscellaneous/Keybinds.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 6ea46e716..3c9f4666a 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -11994,7 +11994,7 @@ return; } target = e.target; - if (target.nodeName === 'embed') { + if (target.nodeName === 'EMBED') { return; } if ((_ref = target.nodeName) === 'INPUT' || _ref === 'TEXTAREA') { diff --git a/builds/crx/script.js b/builds/crx/script.js index 44facbb84..08142d9c0 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -12009,7 +12009,7 @@ return; } target = e.target; - if (target.nodeName === 'embed') { + if (target.nodeName === 'EMBED') { return; } if ((_ref = target.nodeName) === 'INPUT' || _ref === 'TEXTAREA') { diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 69b3fc00b..ff4708649 100755 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -19,7 +19,7 @@ Keybinds = keydown: (e) -> return unless key = Keybinds.keyCode e {target} = e - return if target.nodeName is 'embed' # Prevent keybinds from firing on /f/ embeds. + return if target.nodeName is 'EMBED' # Prevent keybinds from firing on /f/ embeds. if target.nodeName in ['INPUT', 'TEXTAREA'] return unless /(Esc|Alt|Ctrl|Meta|Shift\+\w{2,})/.test key unless g.VIEW is 'catalog'