From 618d66bbd57d7709f211149305ebc41f1b6941f9 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 21 Apr 2016 07:43:59 +0100 Subject: 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. --- pages/options.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages') 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} -- cgit v1.2.3