gecko-dev/accessible/interfaces
James Teh d648744f28 Bug 1837126: Don't set the selection range when HyperTextAccessibleBase::PasteText is called with TEXT_OFFSET_CARET. r=eeejay
If no text is selected, this is the same as passing the caret offset, since the selection range is already where we want it.
However, if text is selected, this allows the caller to replace it, just as it would be when pasting using the keyboard or GUI.
Note that this doesn't break any existing expectations because TEXT_OFFSET_CARET was never supported for this method previously.

This allows us to remove the DeleteText call from Android SessionAccessibility::Paste.
This separate DeleteText call was causing problems because it could result in the deletion and the insertion happening in two separate ticks, resulting in incorrect events.
Now, this should always happen in a single tick.

Differential Revision: https://phabricator.services.mozilla.com/D226108
2024-10-20 22:35:34 +00:00
..
ia2
msaa
moz.build
nsIAccessibilityService.idl
nsIAccessible.idl
nsIAccessibleAnnouncementEvent.idl
nsIAccessibleApplication.idl
nsIAccessibleCaretMoveEvent.idl
nsIAccessibleDocument.idl
nsIAccessibleEditableText.idl Bug 1837126: Don't set the selection range when HyperTextAccessibleBase::PasteText is called with TEXT_OFFSET_CARET. r=eeejay 2024-10-20 22:35:34 +00:00
nsIAccessibleEvent.idl Bug 1915262 - Fire queued live region event from content in MacOS. r=morgan 2024-10-10 17:36:26 +00:00
nsIAccessibleHideEvent.idl
nsIAccessibleHyperLink.idl
nsIAccessibleHyperText.idl
nsIAccessibleImage.idl
nsIAccessibleMacInterface.idl
nsIAccessibleObjectAttributeChangedEvent.idl
nsIAccessiblePivot.idl
nsIAccessibleRelation.idl
nsIAccessibleRole.idl
nsIAccessibleScrollingEvent.idl
nsIAccessibleSelectable.idl
nsIAccessibleStateChangeEvent.idl
nsIAccessibleStates.idl
nsIAccessibleTable.idl
nsIAccessibleTableChangeEvent.idl
nsIAccessibleText.idl
nsIAccessibleTextChangeEvent.idl
nsIAccessibleTextLeafRange.idl
nsIAccessibleTextRange.idl
nsIAccessibleTextSelectionChangeEvent.idl
nsIAccessibleTypes.idl
nsIAccessibleValue.idl