aboutsummaryrefslogtreecommitdiffstats
path: root/pages/options.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-21 07:43:59 +0100
committerStephen Blott2016-04-21 07:43:59 +0100
commit618d66bbd57d7709f211149305ebc41f1b6941f9 (patch)
treef00c6d1886e4bacfcefd1ae5176b9929ef7ce414 /pages/options.coffee
parentc5198e1b6cc90389e15979fb72cccd314feb73b8 (diff)
downloadvimium-618d66bbd57d7709f211149305ebc41f1b6941f9.tar.bz2
Prime focus input on the Vimium options page.
This is a bit of a hack, and pertains to focusInput (`gf`). The problem... On the options page, there are *lots* of inputs (specifically, for every exclusion rule there are two inputs). This makes `gf` almost unusable. It's impossibly to `Tab` through them all. Here, on the options page, we prime the pre-selected input to be the key-mappings input: - arguably, this is the most frequently used input, and - other inputs (such as custom search engines) are just one `Tab` away.
Diffstat (limited to 'pages/options.coffee')
-rw-r--r--pages/options.coffee2
1 files changed, 1 insertions, 1 deletions
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}