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.