From b809fd8d2245793decb45160455939c3cc7993d8 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 22 Apr 2016 14:18:52 +0100 Subject: Simplify 618d66bbd57d7709f211149305ebc41f1b6941f9. --- content_scripts/vimium_frontend.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'content_scripts') 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 -- cgit v1.2.3