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

10.3: Create Command-key-only keyboard shortcuts System
One of the great additions to Panther is the Keyboard Shortcuts tab in the Keyboard and Mouse prefs. In particular, the ability to add a KB shortcut for any menu item in any (or all) applications is fantastic. Except you can't create a shortcut that only has a key plus Command. For instance, I wanted to bind "Find Previous" back to Command-D instead of Shift-Command-G, but it won't let me (function keys seem to work fine by themselves). So here's how to get around it:
  1. Add a new shortcut (say, Find Previous), and bind it to some similar key setup - say Shift-Command-D.
  2. Go into Terminal, and type open ~/Library/Preferences/.GlobalPreferences.plist (make it open -e... if you don't have the Dev Tools installed).
  3. Look for the setting NSUserKeyEquivalents, and open it.
  4. Find the shortcut you are interested in, and remove everything except the letter and the @ symbol and save your changes.
And there you go -- now the Keyboard Shortcut for "Find Previous" is Command-D.
    •    
  • Currently 2.57 / 5
  You rated: 4 / 5 (7 votes cast)
 
[22,365 views]  

10.3: Create Command-key-only keyboard shortcuts | 17 comments | Create New Account
Click here to return to the '10.3: Create Command-key-only keyboard shortcuts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Create Command-key-only keyboard shortcuts
Authored by: JohnnyMnemonic on Oct 30, '03 11:39:41AM

Is there a reason that this facility is disabled by default ie most cmd keys interfere with an already established combination?



[ Reply to This | # ]
10.3: Create Command-key-only keyboard shortcuts
Authored by: Steve Hoge on Oct 30, '03 02:12:15PM

Great to be able to remap Cmd-key combinations w/out resorting to haxies. Now I can fix Entourage's default Cmd-D behavior from Duplicate (how often do you need to duplicate an email?) and remap it to Delete.



[ Reply to This | # ]
10.3: Create Command-key-only keyboard shortcuts
Authored by: cybergoober on Oct 30, '03 12:15:32PM

Isn't Command-D the shortcut to add a bookmark in _most_ web browsers (Safari included)? …



[ Reply to This | # ]
iTunes AppleScripts Keyboard Shortcuts in Panther
Authored by: DougAdams on Oct 30, '03 12:24:18PM
I have posted how to Assign Shortcut Keys to iTunes AppleScripts using the same technique. (I submitted a tip about it here, too. But I imagine Rob is up to here with Panther hints!)

Doug
Doug's AppleScripts for iTunes

[ Reply to This | # ]
How to map Clean Up to a keyboard shortcut?
Authored by: osxpounder on Oct 31, '03 04:11:24PM

Does anyone know how to map a keyboard shortcut to Finder's "Clean Up" command? I tried the obvious [typing "Clean Up" in the blank], but that's not working. That's one keyboard shortcut I've always wanted in Mac OS since way back: a quick keyboard command to clean up the icons.

If there's already a key combo that does this, I'd LOVE to know it.

---
--
osxpounder



[ Reply to This | # ]
How to map Clean Up to a keyboard shortcut?
Authored by: nmthor1 on Nov 12, '03 09:09:36AM

I thought that remapping the Clean Up command didn't work either, until I logged out and back in. Then, the shortcut I assigned to Clean Up appeared.

Actually, can anyone confirm this: I assigned option-command-C to Finder's clean up command. If nothing in a finder window (including the desktop) is selected, then the menu item appears with command-C. When I select items to be cleaned up, then the menu item changes to the one I assigned!

Also, when I have nothing selected, the copy command is not functional anyway and command-C works to clean things up... weird...

-nmthor



[ Reply to This | # ]
How to map Clean Up to a keyboard shortcut?
Authored by: osxpounder on Nov 19, '03 12:41:28PM

Fantastic! Thanks for pointing that out! I look on my View menu in Finder and, sure enough, I've been able to set CMD-U to "Clean Up", and it toggles intelligently between that and "Clean Up Selection" ... schweeet! Oh, I am so diggin' this.

---
--
osxpounder



[ Reply to This | # ]
10.3: Create Command-key-only keyboard shortcuts
Authored by: martyl on Oct 31, '03 11:23:17AM

Hi all-
In a somewhat related vein, I just got a 15" AlBook, and was wondering if anyone knows a way under Panther to change the default behavior of the F-keys. I miss my old WallStreet's one-finger FKeys, which didn't require you to press the 'fn' key to use the keys as function keys (I use Keyboard Maestro to launch apps, etc). Does anyone know of some hack to change it so that standard FKeys are default, and fn-fkey gives me control of volume, screen and keyboard lighting?
Thanks!

---
Marty Lindower



[ Reply to This | # ]
10.3: Create Command-key-only keyboard shortcuts
Authored by: stift on Oct 31, '03 11:57:03AM

hi,
will this work with special kexy for programms to ?
ie i like to change the preferences in ie from apple+shift+,
to the »normal« shortcut apple+,
i can't find an entry for ie in the plist.

---
Kind Regards
Robert
mailto: rbecker@v3-media.de



[ Reply to This | # ]
10.3: Create Command-key-only keyboard shortcuts
Authored by: akuma-x on Nov 02, '03 04:50:29AM

Just a heads up.
You need to edit the .Plist file of the application you are making a KB command for.
Like if you are setting the KB command for Safari then you will need to edit the [code] NSUserKeyEquivalents [/code] area with in [code] ~/Library/Preferences/com.apple.Safari.plist [/code].



[ Reply to This | # ]
10.3: Create Command-key-only keyboard shortcuts
Authored by: n8gray on Nov 12, '03 01:28:53AM

I assume this is true if you only want the shortcut to apply to one application. The instructions given in the original hint make the shortcut apply to all applications.



[ Reply to This | # ]
How would I make apple+
Authored by: TomorrowPlusX on Nov 19, '03 11:29:58PM

I've used *so* many mail clients which send mail via apple-enter... from entourage to kmail under KDE and so on.

I'd love to remap it for Mail, but how would I represent the return key?



[ Reply to This | # ]
How would I make apple+
Authored by: TomorrowPlusX on Nov 20, '03 01:02:19PM

Solved -- but not really. I just edited it in Interface Builder. Good enough!



[ Reply to This | # ]
How would I make apple+
Authored by: bog on Nov 24, '03 07:04:18PM

I really wanted to do this as well. It turns out that if you paste in a new line (you can copy an empty one from TextEdit, for example) in Property List Editor, it works great!



[ Reply to This | # ]
Command-Enter to send Mail in Tiger
Authored by: timbck2 on May 13, '05 04:42:09PM

Editing NSUserKeyEquivalents works great in 10.4...the first time I send mail. After that, it just "bonks" at me, until I quit Mail.app and restart; then it works again, once. Lather, rinse, repeat.

Any idea how to make it "stick" in Tiger?



[ Reply to This | # ]
using Command-Enter for Send mail
Authored by: mture on Dec 03, '03 01:16:42AM
I would suggest sending feedback to Apple directly to try to convince them to change their choice of keyboard shortcut for sending mail. I prefer Command-Enter as well. I don't know what Shift-Command-D stands for - maybe "Deliver"? It's annoying.

If enough people send feedback, maybe they'll listen. I would also like a key-combo for showing/hiding the preview pane.

[ Reply to This | # ]

using Command-Enter for Send mail
Authored by: Adeimantus on Jan 15, '04 04:48:46PM

Command-Shift-S: Save As…
Command-Shift-E: ??
Command-Shift-N: New Folder (at least in Open/Save dialog windows)
Command-Shift-D: Send E-mail

<sarcasm> It's only logical. </sarcasm>



[ Reply to This | # ]