Is it somehow possible to listen to keyevents (keyup, keydown, keypress
) in the chrome omnibox?
So far I just found:
chrome.omnibox.onInputStarted.addListener(function() {...});
chrome.omnibox.onInputChanged.addListener(function(string text, function suggest) {...});
chrome.omnibox.onInputEntered.addListener(function(string text) {...});
chrome.omnibox.onInputCancelled.addListener(function() {...});
Edit:
The problem with the onInputChanged
event is, that it doesn't fire, when the user uses the arrow keys to navigate to one of the suggestions.
onInputChanged
should be sufficient for most use cases. Can you expand your question to explain what you're trying to do and clarify whyonInputChanged
is not sufficient for your needs? – Cytologistchrome.searchBox
now... anyone else find this has changed and which version? – Kuehl