Omnibox API | Open specific window on specific keyword <p>I'm trying to create an omnibox shortcut, so when a user types <code>cp command</code> or <code>cp command 2</code> it will open either window 1, or window 2, but instead it opens both windows on "cp" or "cp {anything here}".</p> <p>Have I missed something from the API?</p> <p><strong>background.html</strong></p> <pre class="lang-java prettyprint-override"><code>&lt;script&gt; chrome.omnibox.onInputChanged.addListener( function sharePage(tweet, suggest) { suggest([ {content: "tweet", description: "Share on Twitter"} ]); }); // chrome.omnibox.onInputEntered.addListener( function sharePage(tweet) { chrome.tabs.getSelected(null, function (tab) { var url = "https://twitter.com/home?status=Check%20out%20" + encodeURIComponent(tab.url) + "%20via @Chromeplete" chrome.tabs.create ({"url": url}); }); }); &lt;/script&gt; &lt;script&gt; chrome.omnibox.onInputChanged.addListener( function sharePage(post, suggest) { suggest([ {content: "post", description: "Share on Facebook"} ]); }); // chrome.omnibox.onInputEntered.addListener( function sharePage(post) { chrome.tabs.getSelected(null, function (tab) { var url = "https://www.facebook.com/sharer.php?u" + encodeURIComponent(tab.url) + "&amp;appid=127651283979691" chrome.tabs.create ({"url": url}); }); }); &lt;/script&gt; </code></pre>