diff options
| author | Luan Nico | 2014-09-03 14:33:18 -0300 |
|---|---|---|
| committer | Luan Nico | 2014-09-03 14:33:18 -0300 |
| commit | 877b4caa12ba9816483bc708d884f9cb48e1759b (patch) | |
| tree | cfad2d85e7ded9d4d9e8ef30c67c52d0f806fe17 /content_scripts/vomnibar.coffee | |
| parent | f2475fdbe927f5d6d66840f7941779f5a8c5d194 (diff) | |
| download | vimium-877b4caa12ba9816483bc708d884f9cb48e1759b.tar.bz2 | |
Changed to show url when item selected
Diffstat (limited to 'content_scripts/vomnibar.coffee')
| -rw-r--r-- | content_scripts/vomnibar.coffee | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index bbcb3f43..9c13cd6d 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -97,8 +97,6 @@ class VomnibarUI (event.keyCode == keyCodes.tab && !event.shiftKey) || (event.ctrlKey && (key == "j" || key == "n"))) return "down" - else if (event.ctrlKey && event.keyCode == keyCodes.enter) - return "complete" else if (event.keyCode == keyCodes.enter) return "enter" @@ -113,10 +111,12 @@ class VomnibarUI else if (action == "up") @selection -= 1 @selection = @completions.length - 1 if @selection < @initialSelectionValue + @input.value = @completions[@selection].url @updateSelection() else if (action == "down") @selection += 1 @selection = @initialSelectionValue if @selection == @completions.length + @input.value = @completions[@selection].url @updateSelection() else if (action == "enter") # If they type something and hit enter without selecting a completion from our list of suggestions, @@ -135,11 +135,6 @@ class VomnibarUI # Shift+Enter will open the result in a new tab instead of the current tab. @completions[@selection].performAction(openInNewTab) @hide() - else if (action == "complete") - if (@selection == -1) - @input.value = window.location - else - @input.value = @completions[@selection].url # It seems like we have to manually suppress the event here and still return true. event.stopPropagation() |
