Files
Oliver Dunk d2296fac85 Update dependencies (#1096)
Updates a nunber of dependencies in a single PR. These were
suggested by dependabot but updating them individually would
mean the reposistory would be in a broken state until everything
had merged.

I'm not personally a huge fan of lowercasing doctype, but
Prettier has taken an opinionated stance here and there is not a
way to disable it:

https://github.com/prettier/prettier/issues/15096
2024-02-20 12:53:23 +01:00
..
2023-08-25 16:09:05 +01:00
2024-02-20 12:53:23 +01:00
2023-08-25 16:09:05 +01:00
2023-08-25 16:09:05 +01:00
2023-08-25 16:09:05 +01:00

chrome.omnibox - Simple Example

This sample demonstrates the "omnibox" manifest key and most of the omnibox APIs.

Overview

The extension uses the "omnibox" manifest key and its parameter "keyword". The extension will print logs to the logs page when the omnibox events are triggered.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Click the extension's action icon to open the logs page.
  4. Type omnix in the omnibox and press Space to see the suggestions.
  5. Try to type something to see how the onInputChanged event is triggered.
  6. Try to left-click or middle-click on the suggestions to see how the onInputEntered event is triggered.
  7. Try to remove some suggestions by clicking the x icon on the right of the suggestion to see how the onInputCancelled event is triggered.