Keyconfig extension

From MozillaZine Knowledge Base
Revision as of 20:32, 26 January 2005 by Asqueella (talk | contribs) (format)
Jump to navigationJump to search

Description of Keyconfig

The extension Keyconfig allows you to configure keyboard shortcuts. It works with Firefox, Thunderbird and (probably) with the Mozilla Suite.

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).

Miscellaneous

To set a shortcut to Ctrl + Space bar type a space " " (without the quotation marks) in the right box (for the shortcut).

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 your user.js, but after starting FF/TB you have to delete the lines from the user.js. If you don'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");

Examples

Custom Keys for Firefox Custom Keys for Thunderbird