Re: SetSystemUIMode disabling Exposé hotkeys
Re: SetSystemUIMode disabling Exposé hotkeys
- Subject: Re: SetSystemUIMode disabling Exposé hotkeys
- From: "Justin R. Miller" <email@hidden>
- Date: Mon, 23 Apr 2007 20:50:34 -0400
On Apr 23, 2007, at 6:05 PM, Ricky Sharp wrote:
My app uses SetSystemUIMode as well. Although, I don't do anything
with global hot-keys.
Anyhow, just using SetSystemUIMode works a-ok. With my app
frontmost, Expose hotkeys are disabled. My about box launches the
preferred web browser (which brings it frontmost). At that point,
Expose hotkeys are enabled. Switching back to my app disables
them. Also, quitting, re-enables things.
Can you describe a bit more with what you're doing with hotkeys?
Are you registering for the same keys that Expose uses?
Specifically, I'm using PTHotKey to essentially shortcut the Carbon
routines to register a global activation hotkey. Then, from any app,
you can hit the hotkey and my app does it's thing, but ideally
without immediately coming to the front. It's essentially then
presenting a CGShieldingWindowLevel() window that needs to have
complete control, so I'm also manually disabling Command-Q (hide
seems to be taken care of with kUIOptionDisableHide). Think of it as
a true kiosk application.
My hotkey is not related to the Exposé hotkeys at all.
--
Justin R. Miller
Code Sorcery Workshop
http://codesorcery.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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