Re: Global hotkeys
Re: Global hotkeys
- Subject: Re: Global hotkeys
- From: Daniel Jalkut <email@hidden>
- Date: Thu, 16 Sep 2004 09:36:03 -0700
Oh yeah - but I assume that if there were a Foundation-provided wrapper
on HotKeys, this challenge would still exist.
What I do, which seems to work well (or nobody has complained), is save
everything in terms of the virtual key code, and use the Carbon key
translator (UCKeyTranslate) to get the correct user-visible string. Of
course, a lot of keys don't work with UCKeyTranslate, so I have them
special cased (function keys, etc.).
But yes, it's a major pain ...
Daniel
On Sep 16, 2004, at 4:59 AM, M. Uli Kusterer wrote:
Actually, the bigger obstacle is turning the virtual key codes this
API takes back into the actual character names for your edit field. If
you're rolling your own, I'd suggest you just save the character for
that key *and* the key code to your prefs. Will save you some work.
Carbon Events are simply a procedural API with some quirks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden