Permalink
Browse files

Enter on empty vomnibar a no-op.

  • Loading branch information...
1 parent 85bffd2 commit 2ed4531d3344e33778760e798490a0c6e6ec0d48 @smblott-github smblott-github 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 2ed4531

Please sign in to comment.