ChrisNZL / Fauxbar

An alternative to Chrome's Omnibox.
https://chrome.google.com/webstore/detail/fauxbar/hibkhcnpkakjniplpfblaoikiggkopka
MIT License
89 stars 13 forks source link

Command+Enter in bar #20

Closed RFLaum closed 6 years ago

RFLaum commented 7 years ago

In Mac OS, when using F+Spacebar in the omnibar, using command+enter does not open the page in a new tab, the way it does normally; it just opens the page in the same tab, as if I'd pressed enter alone.

ChrisNZL commented 7 years ago

Thanks. Looks like I could probably edit Fauxbar's chrome.omnibox.onInputEntered call to check if the Cmd button is held to determine if the selected URL should be opened in a new tab or not.

ChrisNZL commented 6 years ago

Looking into this, I don't think this is possible unfortunately.

With JavaScript, key presses can only be detected with an input event on a page, and Chrome's Omnibox doesn't use any input events. Can't listen for input events on a background page either.