diff options
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 | ||||
| -rw-r--r-- | pages/options.coffee | 2 | 
2 files changed, 5 insertions, 1 deletions
| diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 06b447fc..d316da4c 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -391,6 +391,10 @@ extend window,          HUD.showForDuration("There are no inputs to focus.", 1000)          return +      # 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 ?= document.getElementById "keyMappings" if window.isVimiumOptionsPage +        selectedInputIndex =          if count == 1            # As the starting index, we pick that of the most recently focused input element (or 0). diff --git a/pages/options.coffee b/pages/options.coffee index ff6ad15a..883405e6 100644 --- a/pages/options.coffee +++ b/pages/options.coffee @@ -324,4 +324,4 @@ document.addEventListener "DOMContentLoaded", ->  # Exported for tests.  root = exports ? window -extend root, {Options} +extend root, {Options, isVimiumOptionsPage: true} | 
