Re: [BUG] AXUIElementPostKeyboardEvent Erases User Typing
Re: [BUG] AXUIElementPostKeyboardEvent Erases User Typing
- Subject: Re: [BUG] AXUIElementPostKeyboardEvent Erases User Typing
- From: Maurice Volaski <email@hidden>
- Date: Wed, 04 May 2005 01:49:24 -0400
Posted to radar, 4107468.
on 5/2/05 5:21 AM, email@hidden at
email@hidden wrote:
> I'm trying to add characters to the event queue using
> AXUIElementPostKeyboardEvent. I have a loop which calls this routine
> repeatedly for the keydown and keyup for each character. In testing, I am
> programatically typing just 3-5 characters, so it's not very many. I am
> calling AXUIElementPostKeyboardEvent with AXUIElementCreateSystemWide() as
> the parameter for AXUIElementRef, so whatever application is in the
> foreground will get it. I am calling it from the event handler for
> GetEventMonitorTarget() inside my own application which is in the
> background.
>
> Once I start this loop, it seems, OS 10.3 doesn't allow any user-entered
> keystrokes into the event queue. It's as if it calls CGInhibitLocalEvents
> with TRUE internally and leaves it true for some fixed time after the last
> keystroke event has been in the queue, long enough to erase everything the
> user has typed for a time AFTER the last character has been processed by the
> foreground application.
>
> This sounds like a bug and I'm ready to enter it into radar.
>
> Of course, if I want to type several consecutive keystrokes I want them to
> post into the queue in order, and it seems this apparently internal
> mechanism implemented by the OS will ensure that, but it should only delay
> those events into the queue and not ever let them enter. Further, it seems
> the program calling AXUIElementPostKeyboardEvent should take responsibility
> for calling CGInhibitLocalEvents rather than the OS.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden