How to create a menu with underscore as key binding/accesskey?

The baked in default browser menu’s e.g. have things like “Save” or “Inspect Element (Q)” , i.e. they have keys set to them, which can be pressed/used for (quick) keyboard navigation when the menu is opened.

Now there is my question: How can a WebExtension archive the same result? (with menus.create).

I tried it with adding a simple & inside of the title (as it is commonly done), but that does not work.
So is there any way an add-on can do the same?

The old SKD API had an accesskeyoption. The WebExtension API has nothing like that.

It wold be nice, though. You could search for / open a but report / feature request.

Okay, did so:

Feel free to upvote. :blush:

1 Like

Done. I didn’t know that was possible.

BTW this feature has been implemented and is set to ship in Firefox 63.

1 Like