aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorLuan Nico2014-08-22 16:25:18 -0300
committerLuan Nico2014-08-22 16:25:18 -0300
commitf2475fdbe927f5d6d66840f7941779f5a8c5d194 (patch)
tree99430b6797ecc83c4901655dbed26f859d45abfa /content_scripts
parent34e3e91de12128f1d23c120f97c80b41dae9b42c (diff)
downloadvimium-f2475fdbe927f5d6d66840f7941779f5a8c5d194.tar.bz2
Switching again to Ctrl+Enter
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vomnibar.coffee8
1 files changed, 2 insertions, 6 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index 95e080e8..bbcb3f43 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -97,12 +97,10 @@ 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"
- else if (key == "right")
- return "complete"
- else if (key == "left")
- return "current"
onKeydown: (event) ->
action = @actionFromKeyEvent(event)
@@ -142,8 +140,6 @@ class VomnibarUI
@input.value = window.location
else
@input.value = @completions[@selection].url
- else if (action == "current")
- @input.value = window.location
# It seems like we have to manually suppress the event here and still return true.
event.stopPropagation()