From 771f05845a7ce97bdff95cfb7b58cd2af8ddcae6 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Sun, 12 Nov 2017 15:13:24 +0000 Subject: Use tabIndex to provide the special focusInput behaviour in the options --- content_scripts/mode_normal.coffee | 1 - pages/options.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee index 788042f0..027ad22f 100644 --- a/content_scripts/mode_normal.coffee +++ b/content_scripts/mode_normal.coffee @@ -169,7 +169,6 @@ NormalModeCommands = # This is a hack to improve usability on the Vimium options page. We prime the recently-focused input # to be the key-mappings input. Arguably, this is the input that the user is most likely to use. recentlyFocusedElement = lastFocusedInput() - recentlyFocusedElement ?= document.getElementById "keyMappings" if window.isVimiumOptionsPage selectedInputIndex = if count == 1 diff --git a/pages/options.html b/pages/options.html index ec940cb2..650a129c 100644 --- a/pages/options.html +++ b/pages/options.html @@ -67,7 +67,7 @@ unmapAll Show available commands. - + -- cgit v1.2.3