aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932017-11-12 15:13:24 +0000
committermrmr19932017-11-12 15:18:10 +0000
commit771f05845a7ce97bdff95cfb7b58cd2af8ddcae6 (patch)
tree7b1c833939d2c7bca9fd3396a733db9384e92ff4
parent305a9275de0bd2f8e3578467a2fa33ba82747959 (diff)
downloadvimium-771f05845a7ce97bdff95cfb7b58cd2af8ddcae6.tar.bz2
Use tabIndex to provide the special focusInput behaviour in the options
-rw-r--r--content_scripts/mode_normal.coffee1
-rw-r--r--pages/options.html2
2 files changed, 1 insertions, 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
<a href="#" id="showCommands">Show available commands</a>.
</div>
</div>
- <textarea id="keyMappings" type="text"></textarea>
+ <textarea id="keyMappings" type="text" tabIndex="1"></textarea>
</td>
</tr>
<tr>