diff options
| author | Stephen Blott | 2015-05-27 15:17:17 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-27 16:11:03 +0100 | 
| commit | 402004f3567042a9fa940c3fd66ece1f60c10f88 (patch) | |
| tree | 60595147d006cff89539db2a7597a5cf78bb5e4c /pages | |
| parent | 764d70312f292882abe4940adf9fee3d6e834327 (diff) | |
| download | vimium-402004f3567042a9fa940c3fd66ece1f60c10f88.tar.bz2 | |
Tap-to-open only in omni-mode vomnibar.
Do not use tab-to-open the vominibar in tabs mode.  (It doesn't make any
sense.)
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/vomnibar.coffee | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index fd7fd3cc..423ffa59 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -126,9 +126,12 @@ class VomnibarUI      if (action == "dismiss")        @hide()      else if action in [ "tab", "down" ] -      if @input.value.trim().length == 0 and action == "tab" and not @seenTabToOpenCompletionList -        @seenTabToOpenCompletionList = true -        @update true +      if action == "tab" and +        @completer.name == "omni" and +        not @seenTabToOpenCompletionList and +        @input.value.trim().length == 0 +          @seenTabToOpenCompletionList = true +          @update true        else          @selection += 1          @selection = @initialSelectionValue if @selection == @completions.length | 
