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

Remove shortcuts from applications System
I usually block pop-up windows in Safari, but realized that I sometimes seem to un-block them by accidentally hitting Cmd-K (the default shortcut for Safari -> Block Pop-Up Windows).

The obvious thing to do would be to go to Keyboard & Mouse -> Keyboard Shortcuts in SystemPreferences and set the shortcut to none - which is unfortunately not possible AFAIK.

The next thing that comes to mind is setting the shortcut using the default command in Terminal - which unfortunately was broken in this regard until recently and would interpret a UserKeyEquivalent of nil as just l, which isn't what we wanted.

The good news is that it must have been fixed in one of the latest system updates, so here's how to remove the shortcut from Safari -> Block Pop-Up Windows in Terminal:

defaults write com.apple.Safari NSUserKeyEquivalents -dict-add "Block Pop-Up Windows" "nil"

Note that us usual, this must be entered on a single line in Terminal. And of course you can use the same technique to remove shortcuts from any other application.

    •    
  • Currently 3.20 / 5
  You rated: 4 / 5 (5 votes cast)
 
[18,329 views]  

Remove shortcuts from applications | 22 comments | Create New Account
Click here to return to the 'Remove shortcuts from applications' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove shortcuts from applications
Authored by: Occam on Jun 18, '04 04:29:51PM

Buy 'Menu Master' ,($10), from Unsanity Software and you can alter, add or delete menu shortcuts in any application by simply selecting the item and typing.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: milney on Jun 18, '04 04:49:31PM

Another way to add and remove keyboard shortcuts is in System Preferences under the Keyboard and Mouse panel.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: sjk on Jun 19, '04 12:59:43AM
That won't necessarily work; read John Gruber's Loser, Weepers article for some discussion of that and other issues with keyboard shortcuts. And encourage Apple to fix the implementation. Then a haxie like MenuMaster wouldn't need to be a haxie anymore.

[ Reply to This | # ]
ReKey instead.
Authored by: DanPritchard on Jun 19, '04 01:48:30PM
Never used MenuMaster, but the freeware

[
Reply to This | # ]
ReKey
Authored by: sjk on Jun 20, '04 07:20:32PM

ReKey is $15 shareware, not freeware.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: biglug on Jun 18, '04 07:46:42PM

A good tip .. but I'm still stuck with shortcut craziness: In system prefs I've told Cmd-Opt-D not to show/hide the dock and it doesn't. So far so good. However, once I pop into a classic app (that uses Cmd-Opt-D) all of a sudden my dock is coming and going again! (Only while in classic)

So it seems that changing the default shortcut keys only applies to OS-X and not to classic mode!



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: TvE on Jun 19, '04 02:52:21AM

Classic lives it's own life..



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: AngryFish on Jun 19, '04 06:29:10AM

You could always just delete the "Key Equivalent" attribute of the menu item in MainMenu.nib with interface builder...



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: sapporo on Jun 20, '04 10:18:10AM

Yep, but then you'll have to repeat that process every time you update the app.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: beneden on Jun 19, '04 10:47:31AM
Hi, Nice to see someone else was bothered by this - I assume you're checKing mail with Entourage, too:) OSX shortcuts are sometimes confusing and often conflicting. A system-wide remapping feature would be in order. I have another nasty problem with Entourage shortcuts - I have some mail processing/filing scripts assigned to key combinations. Mostly works as it should - but sometimes (3 most annoying occurences out of 10) pressing the relevant key combination opens the script in Script Editor. Go figure.. Ben
<a href="http://www.beneden.com">Photojournalist</a> and <a href="http://www.beneden.com/wedding/">Wedding Photographer</a>, London, UK


[ Reply to This | # ]
Remove shortcuts from applications
Authored by: beneden on Jun 19, '04 10:59:25AM
I just "protected" my signature in code tags.. Sorry about this.
Ben Eden
Photojournalist and Wedding Photographer, London, UK

[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Frederico on Jun 19, '04 09:04:02PM

I was maddened by the same thing sometime after upgrading to OS X 10.2.6; it still exists as of 10.3.3. My workaround was to move all frequent keystroke commands for Entourage Script Menu items to Keyboard Maestro. I left a couple of infrequently used keystrokes in the native Entourage invocation engine so I could test for interference with each upgrade; no joy to date.

It's not a huge deal, and it's arguably better to use a universal application to manage keystrokes in all apps, but, on the other hand, when an app provides a relatively painless engine to use on its own, it's tedious to go elsewhere to do the same thing -- especially if the keystroke manager isn't terribly well designed. I love KM, but it does have some keystroke creation-flow issues that make me dread having to add a new one, let alone several at a time (it feels to Microsoftian-wizard-like, with too many un-Mac-like steps to get a job done).

Beyond those issues, however, I find it reliable and invaluable, with additional features (especially pre-10.3.x) that make it worth the money. It is a good general tool to override the issues originating in this hint, and it was all I needed -- until OS X 10.3 broke GoLive 6, that is. I finally had to break down and buy Menu Master in order to restore functionality to a few hidden keystrokes (not available in the menus; thus not customizable by most apps, including GoLive's own shortcut manager), namely returning function of Command-comma to the Link Inspector, rather than the now-global default of opening app prefs.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: beneden on Jun 20, '04 08:06:38AM

So I'm not imagining this:)

I tried now to use the keyboard C/P to map a shortcut to an Entourage script. (Changed the script file name first to prevent a conflict.) Funny, I mean extremely annoying: Exact same behavior. Entourage script menu still shows the shortcut associated with the script - and malfunctions just the same.

I wonder if Entourage 2004 still does same - or is it a system glitch after all? but won't touch it before at least the first "service release."

Ben



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Frederico on Jun 20, '04 11:14:46PM

Ben, by using Panther's Keyboard PP, all you are doing is assigning a keystroke which will show in the menu, just as though Entourage had done so, and the keystroke invokes the very same access to the ASS via Entourage. The reason my solution works is that KM, as a running background application, has its own ASS engine/access to execute the scripts.

The bug is certainly within Entourage (surprise); though the conflict came about when OS X took a more active role (starting with the modified Universal Access) of "listening" for keystrokes and taking advanced action upon them.

The bad news is that the behavior persists (surprise again) in Entourage 2004.

There are other keystroke managers you can use besides KM to do the same thing, if you prefer a different attack (or price) to gain the same target.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: beneden on Jun 21, '04 05:10:08AM
Federico, Thanks for explaining! No surprise that Entourage is the culprit - and too bad no change in 2004. (Of course, new apps aren't usually newly coded from the ground up.. but the expectation always is there..) (Actually, I keep being surprised how well Entourage manages complex tasks / volumes of data - so far I haven't had single data loss, when I exclude Palm synchronization, where the culpa might be shared.) I can't imagine using any other program - in fact there are no competitors for integrated email/pim. If there's a free utility you could suggest for above problem, I'm all ears. Best, Ben Photojournalist and Wedding Photographer, London, UK

[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Frederico on Jun 22, '04 01:50:57AM

I have not personally played with any of the free utilities since KM (formerly Program Switcher under legacy Mac OS) became native to OS X; before then I used to use Youpi Key (whose name has since changed). A quick look on VersionTracker returned two pages of results on the keyword 'shortcut'; keyword 'hot key' turned up several more. Many are free; many are shareware; some are even crippleware that have unpaid modes where they will perform limited actions until you pay for a registration.

One often overlooked utility for this purpose is FruitMenu, which, while a bit more tedious to assign keystrokes and manage hot keys, does at least give you a lot of bang for the buck, given that it also adds a powerful Apple Menu replacement, as well as a Contextual Menu plugin to add numerous powerful features and functions.

Hit VT and d/l all the free ones to try them out; you may find them adequate for your needs, or you might try some of the share or commercial wares, and find features and enhancements to your Mac life you didn't know you could live without.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Frederico on Jun 22, '04 01:52:08AM

ack. Mark that last line 'couldn't'. -- F



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: beneden on Jun 22, '04 04:42:24AM

>ack. Mark that last line 'couldn't'. -- F

Hi Frederico,

Thanks again. FruitMenu note taken.

As to your ack.. I think it's valid both ways, actually:)

Best,

Ben



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Frederico on Jun 27, '04 03:08:58AM

I just discovered Yet Another Utility that handles script execution via keystroke, if desired: the excellent Drop Drawers. I must say, I'm embarrassed to admit that I have no idea how long this feature has been a part of the program. I use it extensively as an application launcher for all those apps I use which I do not use often enough to give a keystroke shortcut; having a visual pop-up(out/over/down/etc) of applications in any given group is much nicer, IMHO, than sorting through your applications directories.

It can also host a myriad of things from clippings to aliases, sounds and movies, and more. It even does one more thing that I sorely miss from the Legacy Mac OS Popup (tabbed) Finder windows, and that is to allow a folder alias to act as a proxy for drag'n'drop operations. If only it could allow a drawer to act exactly as an old fashioned Legacy Popup, displaying its contents and allowing sorting and access as a Finder window does It does, at least allow for contextual access to a folder's contents.

Now that I know it also does keystrokes and rapid script execution, I will probably shift a large chunk of KM's usage to it, if only because it has a much more elegant setup interface. KM still provides invaluable window switching options (Cntrl-Tilde per focussed app), even if its app switching option has been effectively killed as of Panther (although it still offers advanced enhanced features there, too). It also hosts a nifty multiple clipboard feature, too. KM also allows for application-specific keystroke isolation (as does Panther KB PP, MenuMaster), which Drop Drawers apparently cannot.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: scotty321 on Jun 19, '04 09:30:23PM

Much easier than all of this is to simply use the System Preferences Keyboard panel to set the shortcut to something that you rarely use -- like option-K.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Fofer on Jun 22, '04 08:38:43PM

Yeah - what Scotty321 said. Because then you still have the convenience of a shortcut... (just not one you're invoking all the time by mistake!) Not to mention doing it without any 3rd party tools, as its built into the OS/GUI.



[ Reply to This | # ]
Remove shortcuts from applications
Authored by: Fofer on Jun 22, '04 08:49:07PM

Although, I'd suggest command-option-K, as option-K is used to type the "degree" symbol.



[ Reply to This | # ]