Re: SetSystemUIMode disabling Exposé hotkeys
Re: SetSystemUIMode disabling Exposé hotkeys
- Subject: Re: SetSystemUIMode disabling Exposé hotkeys
- From: Ricky Sharp <email@hidden>
- Date: Mon, 23 Apr 2007 17:05:03 -0500
On Apr 23, 2007, at 4:30 PM, Justin R. Miller wrote:
I'm trying to use SetSystemUIMode for some full-screen functionality.
An unintended side effect is that Exposé key shortcuts are disabled
but not always re-enabled. They are supposed to be disabled during
the mode change and then automatically re-enabled "when some other
application becomes frontmost, or when the application that called
SetSystemUIMode quits".
Reference: http://developer.apple.com/releasenotes/Carbon/RN-
HIToolbox/index.html
I've noticed that when using a global hotkey to call the associated
functionality and my app is not frontmost, the keys never get re-
enabled. This happens 100% of the time.
1) Does anyone know of a workaround for this? I can't find one.
2) Can someone point me in the right direction for reading these
keys at launch and then manually re-enabling them myself as a
possible workaround?
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?
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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