• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Global hotkeys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Global hotkeys (From: Don Smith <email@hidden>)
 >Re: Global hotkeys (From: Daniel Jalkut <email@hidden>)
 >Re: Global hotkeys (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: [Q] Bindings, FilteringController and KVC compliance
  • Next by Date: Re: deployment vs. development style weirdness
  • Previous by thread: Re: Global hotkeys
  • Next by thread: Re: Global hotkeys
  • Index(es):
    • Date
    • Thread