Closed Bug 355380 Opened 18 years ago Closed 18 years ago

"text selection changed" event sent out when focus changes

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 368598

People

(Reporter: hwaara, Assigned: aaronlev)

References

Details

(Keywords: access)

I've made mac listen to the nsIAccessible::EVENT_ATK_TEXT_SELECTION_CHANGE. It is not only fired when a selection is changed, but also when you tab from one link to another.

I think it should only be fired if the _length_ of the selection changes.

So, changing from 3 characters selected to 0 (no selection) fires it, but tabbing from an unselected element (0) to another unselected element (0) wouldn't..
At least, if it goes from collapsed to collapsed but the location has changed, it's really just a caret move event.
Blocks: keya11y
Keywords: access
OS: Mac OS X 10.3 → All
Hardware: Macintosh → All
we have
text_selection_changed
selection_changed
text_caret_moved

where is the exact def for them?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061117 Minefield/3.0a1

Focusable text objects such as text links emit the object:text-selection-changed event immediately after they receive focus. This event fires regardless of whether text is selected anywhere on the page or not.

On Linux, object:text-selection-change events typically fire only when the length of a selection region changes. The only event I would expect to receive when a link receives focus is a focus: event. If text is selected elsewhere on the page and becomes deselected because of this focus change, then I would expect the object:text-selection-change on the accessible for the previously selected text, but definitely not on the newly focused link object.
Blocks: newatk
No longer blocks: keya11y
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.