Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a universal shortcut to most apps' Preferences dialog' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a universal shortcut to most apps' Preferences dialog
Authored by: bluehz on May 09, '03 10:01:36PM

Neither of the techniques mention how to reset it back to the
default if you don't like it... or is that obvious and I am missing
it....



[ Reply to This | # ]
Removing a key equivalent
Authored by: Cameroon on May 10, '03 10:34:19AM

You can delete the whole NSUserKeyEquivalents entry with

defaults delete NSGlobalDomain NSUserKeyEquivalents

You can modify or add key equivalents with -dict-add:

defaults write NSGlobalDomain NSUserKeyEquivalents -dict-add "Quit Safari" ""

The affect of the above is to set "Quit Safari" to use the normal key equivalent and is as close as you can get with the defaults command line utility to removing a specific NSUserKeyEquivalents without re-doing the whole thing.

Oh, and it would probably be useful to point out that defaults read NSGlobalDomain NSUserKeyEquivalents will show you what global key equivalents you have.

Also note: I don't know if the defaults command in 10.1 supports the -dict-add syntax, but it probably does.

You should also be able to use Property List Editor to edit the file where the global domain is stored, you just have to find the file first.



[ Reply to This | # ]