• 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: How can I not block hotkey from other apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I not block hotkey from other apps


  • Subject: Re: How can I not block hotkey from other apps
  • From: Bill Cheeseman <email@hidden>
  • Date: Mon, 23 Nov 2009 11:45:39 -0500

On Nov 23, 2009, at 10:17 AM, Symadept wrote:

> I managed to get my app support for registering hotkeys and using it. But
> unfortunately if I register Cmd P as hot key in my app, no one in the system
> can use this hotkey to print unless I deregister it. How can I make it not
> block others.

I do it in my hotkey callback function by temporarily unregistering my hotkey, reposting the incoming keyboard event into the event stream, and re-registering my hotkey. It works fine.


--

Bill Cheeseman
email@hidden

_______________________________________________

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

References: 
 >How can I not block hotkey from other apps (From: Symadept <email@hidden>)

  • Prev by Date: Re: NSStream Operation Timed out issue
  • Next by Date: Re: Strings mangled on generalPasteboard
  • Previous by thread: How can I not block hotkey from other apps
  • Next by thread: Re: How can I not block hotkey from other apps
  • Index(es):
    • Date
    • Thread