Keyconfig extension: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (missing newline)
(Deleted text about xul, Changed text about user.js, Changed expression "following lines" to "preferences for custom keys")
Line 2: Line 2:
The extension [http://dorando.emuverse.com/projects/mozilla/readme.html Keyconfig] allows you to configure keyboard shortcuts. It works with [[Firefox]], [[Thunderbird]] and (probably) with the [[Mozilla Suite]].
The extension [http://dorando.emuverse.com/projects/mozilla/readme.html 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).
Shortcuts defined via a key can be changed. For more details read this: http://www.extensionsmirror.nl/index.php?showtopic=254


===Miscellaneous===
===Miscellaneous===
Line 8: Line 8:


===Custom Keys===
===Custom Keys===
You can add the following lines to the file [[prefs.js]] in your [[Profile Folder|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 can add preferences for custom keys to to the file [[prefs.js]] in your [[Profile Folder|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.
''Attention:'' Don't add this preferences to your [[user.js]], because they would be applied again with the next start of FF/TB and therefore the assigned keyboard shortcuts would be overwritten (deleted).


====Template====
====Template====

Revision as of 22:14, 28 January 2005

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. For more details read this: http://www.extensionsmirror.nl/index.php?showtopic=254

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 preferences for custom keys to 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.

Attention: Don't add this preferences to your user.js, because they would be applied again with the next start of FF/TB and therefore the assigned keyboard shortcuts would be overwritten (deleted).

Template

user_pref("keyconfig.main.xxx_key__NAME", "!][][][FUNCTION");

Examples

Custom Keys for Firefox

Custom Keys for Thunderbird