Omnibox software input

I want the extension to be controlled by Omnibox. The chrome.omnibox API allows me to register a keyword, but that means I have to press or type a lot to go to the extension. For example, I need Ctrl+L to select omnibox, then type a few letters for extension and space / tab.

Can I enter the program code "omnibox mode for my extension"? That is, is there an API call that I can make that will cause the keyboard focus to be connected to omnibox in the already enabled mode for my extension? I just want to replace the click / enter sequence with one shortcut on the keyboard, which will allow the user to immediately interact with the extension through omnibox.

+4
source share
1 answer

This is currently not possible. I saw how this is implemented in two ways: 1. As you suggest, letting the extension enter the omnibox programmatically. I'm not sure if it’s a good idea to steal the keyboard’s focus can annoy the user and a possible security risk. 2. By adding "enter omnibox mode" as the target for the API API . Thus, the user can customize the key combination or completely disable it.

+2
source

All Articles