How to correctly determine the selected action, from a mouse select?
How to correctly determine the selected action, from a mouse select?
- Subject: How to correctly determine the selected action, from a mouse select?
- From: Brian Krisler <email@hidden>
- Date: Sun, 17 Jan 2010 14:35:55 -0500
Hi,
I am developing an application that relies on the accessibility API. My application
requires knowledge of the mouse selected action (i.e. Edit, Copy). To gain
access to this action, I have tried two different approaches, EventTaps and EventHandlers.
Using both of these methods, I have placed listeners on both mouse up and mouse down
events. When the event is observed, I grab the accessibility object at the mouse point.
However, in both approaches, I have observed instances where the selected action is
not reported correctly, depending on the 'habit' of the individual.
For example:
A) If the subject Clicks on 'Edit' and releases on 'Select All', the reported events would be:
Mouse Down: Edit
Mouse Up: What ever object is under 'Select All'.
B) If the Subject Clicks and releases on 'Edit', then clicks and releases on 'Select All', there are 4 events:
Mouse Down: Edit
Mouse Up: Edit
Mouse Down: Select All
Mouse Up: Select All
For Case B, I can get the proper action 'Select All'. However it is case A that I miss the action. Is there
a more appropriate method for determining the executed action that the approaches outlined above? Since
I have no control over the selection habits of my user base, I am obligated to design my software to
handle both cases above.
An even more random case is one where the select results in the dismissal of a window (Send mail for example).
In this case the Mouse Down would be the send button and Mouse Up would be the action under the composed
window.
Thanks for any suggestions/ideas.
Brian Krisler
_______________________________________________
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