Search code examples
firefoxfirefox-addonkeyboard-shortcutsfirefox-addon-webextensions

Add a Keyboard Shortcut to Firefox Extension


I'm developing a Firefox Extension. I added a new item to the "Tools" Menu to open my extension, but I would like to add a keyboard shortcut to open my extension (something like 'control + alt + x').


Solution

  • I've found it by myself

    <keyset id="mainKeyset"> <key id="key_convert" key="x" modifiers="accel alt" oncommand="OpenMyAddOn()"/> </keyset>