aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-11-29 12:07:21 +0000
committerStephen Blott2014-11-29 12:13:07 +0000
commit2b06bebef4837f515ce1a85b0b8efa0af6f5d125 (patch)
tree5716c6b5f5548d730e9cfda0c0cfc9fe99fb6a6d
parent1958a77f82b44fcb863424cfa488257f18be3820 (diff)
downloadvimium-2b06bebef4837f515ce1a85b0b8efa0af6f5d125.tar.bz2
Options; release focus on clicking advanced.
When the show/hide advanced options link is clicked, it gains the focus, and the URL is displayed by chrome in the bottom-left corder of the window. This partially obscures the footer, so we immediately blur the link. Also, same for the "show help" link.
-rw-r--r--pages/options.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/options.coffee b/pages/options.coffee
index 44320a0e..674f0b98 100644
--- a/pages/options.coffee
+++ b/pages/options.coffee
@@ -152,9 +152,13 @@ toggleAdvancedOptions =
$("advancedOptionsLink").innerHTML = "Hide advanced options"
advancedMode = !advancedMode
event.preventDefault()
+ # Prevent the "advanced options" link from retaining the focus.
+ document.activeElement.blur()
activateHelpDialog = ->
showHelpDialog chrome.extension.getBackgroundPage().helpDialogHtml(true, true, "Command Listing"), frameId
+ # Prevent the "show help" link from retaining the focus.
+ document.activeElement.blur()
#
# Initialization.