files/en-us/mozilla/add-ons/webextensions/api/omnibox/oninputstarted/index.md
Fired when the user starts interacting with your extension by entering its keyword in the address bar and then pressing the space key.
This will be sent before any {{WebExtAPIRef("omnibox.onInputChanged")}} events.
browser.omnibox.onInputStarted.addListener(listener)
browser.omnibox.onInputStarted.removeListener(listener)
browser.omnibox.onInputStarted.hasListener(listener)
Events have three functions:
addListener(listener)
removeListener(listener)
listener argument is the listener to remove.hasListener(listener)
listener is registered for this event. Returns true if it is listening, false otherwise.listener
browser.omnibox.onInputStarted.addListener(() => {
console.log("User has started interacting with me.");
});
{{WebExtExamples}}
{{Compat}}
[!NOTE] This API is based on Chromium's
chrome.omniboxAPI.