Keyconfig extension
From MozillaZine Knowledge Base
The extension Keyconfig allows you to configure keyboard shortcuts. It works with Firefox, Thunderbird, and (probably) the Mozilla Suite. Shortcuts defined via a key can be changed. For more details, [1].
Tips
- You can add preferences for custom keys to to the "prefs.js" file in your profile folder to get the described results. All instances of Firefox, Thunderbird, or Mozilla must be closed before editing this file. After editing start the browser and open the Keyconfig window to set your keyboard shortcut. Attention: Don't add these preferences to your "user.js" file because they are applied again with the next start and the assigned keyboard shortcuts will be deleted.
Template
user_pref("keyconfig.main.xxx_key__NAME", "!][][][FUNCTION");