aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/vimium_frontend.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 6f084204..69113088 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -793,6 +793,9 @@ VimiumHelpDialog =
VimiumHelpDialog.toggleAdvancedCommands, false)
@showAdvancedCommands(@getShowAdvancedCommands())
+ # Simulating a click on the help dialog makes it the active element for scrolling.
+ DomUtils.simulateClick document.getElementById "vimiumHelpDialog"
+
#
# Advanced commands are hidden by default so they don't overwhelm new and casual users.
#
@@ -816,9 +819,6 @@ window.showHelpDialog = (html, fid) ->
VimiumHelpDialog.init html
VimiumHelpDialog.show()
- # Simulating a click on the help dialog makes it the active element for scrolling.
- DomUtils.simulateClick document.getElementById "vimiumHelpDialog"
-
hideHelpDialog = (clickEvent) ->
isShowingHelpDialog = false
helpDialog = document.getElementById("vimiumHelpDialogContainer")