focus cooties
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