Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get a list of available commands and keys?

I noticed this in a Firefox extension:

<command id="Browser:BackOrBackDuplicate" disabled="true"/>

and this in the preferences:

browser.gesture.swipe.left;  Browser:BackOrBackDuplicate

I assume from this that Browser:BackOrBackDuplicate is a function of Firefox.

I also noticed this in the extension:

<key id="key_cut" disabled="true"/>

Where can I get a list of these methods and keys by name and what they do? I tried searching for it, but I don't know what keywords to use to get the right results.

like image 846
Zachary Scott Avatar asked Oct 26 '25 11:10

Zachary Scott


1 Answers

These commands and keys aren't documented for a reason - they are used internally by the browser and can change any time without prior notice. Extensions shouldn't touch them without a very good reason.

That said, if you really want to mess with them, you can find all of them defined in browser-sets.inc (this file becomes part of browser.xul when Firefox is compiled). Most of the commands are implemented in browser.js, some are not - you can search the code to find their implementation. You can also use DOM Inspector extension to inspect the browser window at runtime.

like image 133
Wladimir Palant Avatar answered Oct 28 '25 03:10

Wladimir Palant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!