diff options
| author | Stephen Blott | 2016-04-16 15:20:45 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-16 15:20:45 +0100 |
| commit | e60066218806ca42ebe94fd1ce0042993909658d (patch) | |
| tree | 2620e4fc02511a69c1edbc3cd4d0ab8779de73d3 /content_scripts/vimium_frontend.coffee | |
| parent | 59d6ce006da3cb125252dfd98819daf65650781e (diff) | |
| download | vimium-e60066218806ca42ebe94fd1ce0042993909658d.tar.bz2 | |
Reinstate vomnibar from within help dialog.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 537dbaa9..023952c1 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -119,12 +119,12 @@ class NormalMode extends KeyHandlerMode You have asked Vimium to perform #{count} repetitions of the command: #{registryEntry.description}.\n Are you sure you want to continue?""" - if registryEntry.topFrame and window.isVimiumUIComponent? and window.isVimiumUIComponent - # We cannot use "topFrame" commands, most notably the Vomnibar, from within a UI component. - HUD.showForDuration "#{registryEntry.command} cannot be used here.", 2000 - else if registryEntry.topFrame + if registryEntry.topFrame + # The Vomnibar (a top-frame command) cannot coexist with the help dialog (it causes focus issues). + sourceFrameId = if HelpDialog.isShowing() and window.isVimiumUIComponent then 0 else frameId + HelpDialog.toggle() if HelpDialog.isShowing() chrome.runtime.sendMessage - handler: "sendMessageToFrames", message: {name: "runInTopFrame", sourceFrameId: frameId, registryEntry} + handler: "sendMessageToFrames", message: {name: "runInTopFrame", sourceFrameId, registryEntry} else if registryEntry.background chrome.runtime.sendMessage {handler: "runBackgroundCommand", registryEntry, count} else |
