From 85bffd2dd8ef75b7c50d6851350490aea4c184cd Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Mon, 12 Nov 2012 22:36:34 -0800 Subject: 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. --- content_scripts/vomnibar.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content_scripts') 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") -- cgit v1.2.3