aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-05-30 10:50:24 +0100
committerStephen Blott2015-05-30 10:50:24 +0100
commit95f0df630783274b686ee530816a842565413cf2 (patch)
tree1080abffd2890c64dcea07e931e0ea2aa239df65
parentfa0296499c7d7f0ea717d53228b9d2cba8a955df (diff)
downloadvimium-95f0df630783274b686ee530816a842565413cf2.tar.bz2
When showing the help dialog, simulate-click it.
On smaller screens (and with the advanced options unfolded), the help page can need scrolling. Currently, you have to click it to give it the focus. Here, we simulate-click it, so that "j" and "k" scrolling is active immediately.
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 41fb772b..b7acf433 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -1120,6 +1120,8 @@ window.showHelpDialog = (html, fid) ->
chrome.runtime.sendMessage({handler: "openOptionsPageInNewTab"})
false)
+ # Simulating a click on the help dialog makes it the active element for scrolling.
+ DomUtils.simulateClick document.getElementById "vimiumHelpDialog"
hideHelpDialog = (clickEvent) ->
isShowingHelpDialog = false