From 2b06bebef4837f515ce1a85b0b8efa0af6f5d125 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 29 Nov 2014 12:07:21 +0000 Subject: 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. --- pages/options.coffee | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pages/options.coffee') 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. -- cgit v1.2.3