aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-04-22 14:18:52 +0100
committerStephen Blott2016-04-22 14:18:52 +0100
commitb809fd8d2245793decb45160455939c3cc7993d8 (patch)
tree48e0ac2ae416a235d01ba6807c1be1d283b47c74
parent618d66bbd57d7709f211149305ebc41f1b6941f9 (diff)
downloadvimium-b809fd8d2245793decb45160455939c3cc7993d8.tar.bz2
Simplify 618d66bbd57d7709f211149305ebc41f1b6941f9.
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 2d6d66be..d316da4c 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -393,9 +393,7 @@ extend window,
# 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.
- unless recentlyFocusedElement?
- if window.isVimiumOptionsPage
- recentlyFocusedElement = document.getElementById "keyMappings"
+ recentlyFocusedElement ?= document.getElementById "keyMappings" if window.isVimiumOptionsPage
selectedInputIndex =
if count == 1