aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2012-11-12 22:36:34 -0800
committerPhil Crosby2012-11-12 22:38:15 -0800
commit85bffd2dd8ef75b7c50d6851350490aea4c184cd (patch)
treef879c91ad6150d5e71a282f24605426e48b2df6b
parent32e506dd94565d54ab4d81144eebf849a98be338 (diff)
downloadvimium-85bffd2dd8ef75b7c50d6851350490aea4c184cd.tar.bz2
Allow ctrl+enter to open a suggestion in a new tab
It's pretty natural to hit CTRL+N and CTLR+P to select a choice, and then CTRL+enter to open it in a new tab. But previously that didn't work on mac.
-rw-r--r--content_scripts/vomnibar.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index fdd698dc..07ae5a3b 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -94,7 +94,8 @@ class VomnibarUI
action = @actionFromKeyEvent(event)
return true unless action # pass through
- openInNewTab = @forceNewTab || (event.shiftKey || KeyboardUtils.isPrimaryModifierKey(event))
+ openInNewTab = @forceNewTab ||
+ (event.shiftKey || event.ctrlKey || KeyboardUtils.isPrimaryModifierKey(event))
if (action == "dismiss")
@hide()
else if (action == "up")