• 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: More on Keyboard Event posting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on Keyboard Event posting


  • Subject: Re: More on Keyboard Event posting
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 29 Sep 2008 16:21:12 -0600

Rock on!  Changing that eventTap to kCGHIDEventTap worked perfectly!

Thank you so much!

Dave

On Sep 29, 2008, at 4:16 PM, Ken Thomases wrote:

On Sep 29, 2008, at 10:25 AM, Dave DeLong wrote:

However some keyevents, such as Command-Space to activate Quicksilver on my machine (usually Spotlight) or Shift-Command-3 to take a screenshot or Command-Tab to activate the application switcher, only produce a system beep. Any ideas why and how we can get around that?

We thought it might be the event source state used to create the CGEventSourceRef, but changing it to kCGEventSourceStateHIDSystemState or even kCGEventSourceStatePrivate did not produce the desired results.

I think the problem is the event tap point at which you're inserting the event. Instead of kCGAnnotatedSessionEventTap, try kCGSessionEventTap or kCGHIDEventTap.


Cheers,
Ken


_______________________________________________

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: 
 >More on Keyboard Event posting (From: Dave DeLong <email@hidden>)
 >Re: More on Keyboard Event posting (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: More on Keyboard Event posting
  • Next by Date: Passing focus to a control
  • Previous by thread: Re: More on Keyboard Event posting
  • Next by thread: Tracking area pending install and disabled
  • Index(es):
    • Date
    • Thread