Re: Reconsidering AXUIElementPostKeyboardEvent
Re: Reconsidering AXUIElementPostKeyboardEvent
- Subject: Re: Reconsidering AXUIElementPostKeyboardEvent
- From: "John O. Louch" <email@hidden>
- Date: Tue, 17 Dec 2002 17:34:20 -0800
>
on 02-12-17 5:53 PM, Mike Engber at email@hidden wrote:
>
>
> This sounds like you are saying that CGPostKeyboardEvent &
>
> AXUIElementPostKeyboardEvent are behaving differently (as in the former
>
> works properly, and the latter doesn't).
>
>
>
> That would be very surprising.
>
>
>
> My guess is that CGPostKeyboardEvent doesn't work like you think it
>
> should work. I'm not sure if there's a bug there or not, but you should
>
> file one.
>
>
I haven't touched CGPostKeyboardEvent. I'm just going with what I see
>
AXUIElementPostKeyboardEvent doing, and comparing it to the assistive app
>
documentation.
>
>
But, now that you mention it, the documentation suggests that
>
AXUIElementPostKeybaordEvent just calls CGPostKeyboardEvent in the case of
>
the system-wide event, which seems to work as I expect it to work. It's the
>
functionality that goes beyond CGPostKeyboardEvent that doesn't seem to work
>
right.
There is a definite bug in AXUIElementPostKeyboardEvent. It will be fixed
in the next major release of the system. In the meantime, bringing the app
in question to the front before either using the system element or calling
CGPostKeyboardEvent will solve the problem. I know this is not the best
workaround, but it is the best we can do at this time.
Thanks,
jl
Ps. AXUIElementPostKeyboardEvent will work if you do not care about
modifiers as you discovered.
>
>
--
>
>
Bill Cheeseman - email@hidden
>
Quechee Software, Quechee, Vermont, USA
>
http://www.quecheesoftware.com
>
>
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
>
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
>
Croquet Club of Vermont - http://members.valley.net/croquetvermont
>
_______________________________________________
>
accessibility-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
>
Do not post admin requests to the list. They will be ignored.
---------------------------------------------
John Louch Internet #: email@hidden
(805) 546 0216
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.