From f962d84ef8d2658f4f84edf0d1dbe629023c17f5 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 7 Jan 2017 09:04:43 +0100 Subject: [PATCH] Find more elements for the `ef` command This is basically a continuation of commit a3b2501c3: > Recognize explicit `tabindex="-1"` elements as focusable This is useful on Facebook, for example. See #859. --- extension/lib/commands-frame.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/lib/commands-frame.coffee b/extension/lib/commands-frame.coffee index b295049..d8c27ad 100644 --- a/extension/lib/commands-frame.coffee +++ b/extension/lib/commands-frame.coffee @@ -365,7 +365,7 @@ commands.follow_focus = helper_follow.bind( null, {id: 'focus', combine: false}, ({vim, element}) -> type = switch - when element.tabIndex > -1 + when utils.isFocusable(element) 'focusable' when element != vim.state.scrollableElements.largest and vim.state.scrollableElements.has(element) -- 2.39.3