Permalink
Browse files

Merge pull request #734 from smblott-github/enter--make-enter-a-noop-…

…in-vomnibar

Make <Enter> on an empty vomnibar be a no-op
  • Loading branch information...
2 parents 85c56e3 + 2ed4531 commit 846cc9f542e24fdc08e73e1a45973dd11d62cb53 @philc committed Nov 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 content_scripts/vomnibar.coffee
@@ -112,6 +112,8 @@ class VomnibarUI
# google.
if (@selection == -1)
query = @input.value.trim()
+ # <Enter> on an empty vomnibar is a no-op.
+ return unless 0 < query.length
@hide()
chrome.extension.sendRequest({
handler: if openInNewTab then "openUrlInNewTab" else "openUrlInCurrentTab"

0 comments on commit 846cc9f

Please sign in to comment.