Coding double modifier global hotkeys?
Coding double modifier global hotkeys?
- Subject: Coding double modifier global hotkeys?
- From: Sumner Trammell <email@hidden>
- Date: Sun, 24 Jan 2010 12:17:29 -0500
Hi,
I've been playing with code to create global hotkeys. I found some
sample code here:
http://dbachrach.com/blog/2005/11/program-global-hotkeys-in-cocoa-easily
(To my dismay, these things require Carbon knowledge, but thanks to
the sample code, it seems that I can once again get away with knowing
almost nothing of the Carbon APIs.)
This code does a fine job of setting up standard "modifier key +
regular key" global hotkeys, but I can't figure out how to do double
modifier hotkeys. For example:
command-command
option-option
etc.
OmniFocus, Quicksilver and LaunchBar, to name a few, support double
modifier global hotkeys.
Can anyone point me to some documentation or give me hints on how to
create double modifier global hotkeys? The following didn't work,
fwiw:
error = RegisterEventHotKey(cmdKey, cmdKey, gMyHotKeyID,
GetApplicationEventTarget(), 0, &gMyHotKeyRef);
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden