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


(rugk) #1

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?


(Niklas Gollenstede) #2

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.


(rugk) #3

Okay, did so:

Feel free to upvote. :blush:


(Niklas Gollenstede) #4

Done. I didn’t know that was possible.


(rugk) #5

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