Keyconfig extension: Difference between revisions
(sorry) |
No edit summary |
||
Line 4: | Line 4: | ||
Shortcuts defined via a key can be changed but only changing those which itself call a function (those with a command or oncommand attribute) has an effect (all others fulfill only cosmetic purposes it seems and are grayed out). That means you can change the shortcut for "Decrement URL" (Magpie) but not for "Undo Close Tab" (Tabbrowser Extensions). | Shortcuts defined via a key can be changed but only changing those which itself call a function (those with a command or oncommand attribute) has an effect (all others fulfill only cosmetic purposes it seems and are grayed out). That means you can change the shortcut for "Decrement URL" (Magpie) but not for "Undo Close Tab" (Tabbrowser Extensions). | ||
You can add the following lines to the file prefs.js in your profile to get the described results. All instances of Firefox must be closed before editing this file. After editing start | ===Custom Keys=== | ||
You can add the following lines to the file prefs.js in your profile to get the described results. All instances of Firefox/Thunderbird must be closed before editing this file. After editing start FF/TB and open the Keyconfig window to add your keyboard shortcut. | |||
You could also add the lines to you user.js, but after starting | You could also add the lines to you user.js, but after starting FF/TB you have to delete the lines from the user.js. If you won't delete them, they will be applied again with the next start of FF/TB and will overwrite (delete) the assigned keyboard shortcuts. | ||
'''Template''' | |||
<pre> | <pre> | ||
user_pref("keyconfig.main.xxx_key__NAME", "!][][][FUNCTION"); | user_pref("keyconfig.main.xxx_key__NAME", "!][][][FUNCTION"); | ||
</pre> | |||
[[Keyconfig extension - Custom Keys for Firefox | Custom Keys for Firefox]] | |||
[[Keyconfig extension - Custom Keys for Thunderbird | Custom Keys for Thunderbird]] | |||
Revision as of 19:15, 26 January 2005
Description of Keyconfig
The extension Keyconfig allows you to change keyboard shortcuts. [Firefox, Thunderbird, SeaMonkey (maybe)]
Shortcuts defined via a key can be changed but only changing those which itself call a function (those with a command or oncommand attribute) has an effect (all others fulfill only cosmetic purposes it seems and are grayed out). That means you can change the shortcut for "Decrement URL" (Magpie) but not for "Undo Close Tab" (Tabbrowser Extensions).
Custom Keys
You can add the following lines to the file prefs.js in your profile to get the described results. All instances of Firefox/Thunderbird must be closed before editing this file. After editing start FF/TB and open the Keyconfig window to add your keyboard shortcut.
You could also add the lines to you user.js, but after starting FF/TB you have to delete the lines from the user.js. If you won't delete them, they will be applied again with the next start of FF/TB and will overwrite (delete) the assigned keyboard shortcuts.
Template
user_pref("keyconfig.main.xxx_key__NAME", "!][][][FUNCTION");