aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-10-26 08:06:27 +0000
committerStephen Blott2014-10-26 08:06:27 +0000
commit1497320447dd7b0a25f1ee167d92b441894e63d3 (patch)
tree05004fc2253b0b508423f987105098a1324c54e7
parentfc7cdcdeb46aacda448105c58964a07ed68e0d4d (diff)
downloadvimium-1497320447dd7b0a25f1ee167d92b441894e63d3.tar.bz2
Fix detection of embedded objects.
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 317acd22..4f7becba 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -516,7 +516,7 @@ isFocusable = (element) -> isEditable(element) || isEmbed(element)
# Embedded elements like Flash and quicktime players can obtain focus but cannot be programmatically
# unfocused.
#
-isEmbed = (element) -> ["embed", "object"].indexOf(element.nodeName.toLowerCase()) > 0
+isEmbed = (element) -> ["embed", "object"].indexOf(element.nodeName.toLowerCase()) >= 0
#
# Input or text elements are considered focusable and able to receieve their own keyboard events,