Due to how ATK (the accessibility library) works, we need to emit the a11y text deletion signal before text has actually be deleted, so ATK can query the deleted text whie it still exists.
This fixes the text reported as having been deleted to the a11y layer, which before had whichever text that happened to appear after the deleted range.
Attached patch fixes this by emitting the signal in BEFOREDELETE instead of DELETETEXT, which also slightly simplifies the code.
Committed as [0a937b].
Related
Commit: [0a937b]