• 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
focus cooties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

focus cooties


  • Subject: focus cooties
  • From: Corey Nelson <email@hidden>
  • Date: Mon, 4 Feb 2002 17:02:00 -0700

I'm writing a Floating Keyboard Application for OS X (a virtual
keyboard on the screen that will inject keyboard events into the OS
when the user clicks the buttons).

I'm using CGPostKeyboardEvent to inject keyboard events into the
system and it works great. The problem is I need the keyboard events
to go to applications other than my FloatingKeyboard app. It's a
problem of focus. As soon as the user clicks one of the buttons in my
keyboard window my FloatingKeyboard app gets the focus so naturally
any keyboard events get sent to my app instead the intended target.

What I need is a way to resign the keyboard focus to which ever application
had
it before mine just before I call CGPostKeyboardEvent.

Any suggestions would be very appreciated.

Thanks in advance.

Corey Nelson


  • Prev by Date: Re: Transparent Button
  • Next by Date: Re: Speed of Quartz (was: optimizing compilers)
  • Previous by thread: Re: Exceptions and unexpected crashes
  • Next by thread: Wrapping Java in ObjC
  • Index(es):
    • Date
    • Thread