[NEEDS CHERRYPICK] SayAll "rewind" feature no longer works due to af44e7f2
Steps to reproduce:
- Enable rewind/fast-forward for SayAll in Orca's preferences
- Open a text document (e.g. in Pluma)
- Start SayAll
- Press Up Arrow to rewind
Expected results: One would be able to press Up Arrow repeatedly to review/rewind the content within SayAll
Actual results: SayAll stops, rewind fails, and this traceback appears:
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/orca/scripts/default.py", line 3182, in __sayAllProgressCallback
elif lastKey == "Up" and self._rewindSayAll(context):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/orca/scripts/default.py", line 3121, in _rewindSayAll
index = self._sayAllContexts.index(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: <orca.speechserver.SayAllContext object at 0x7f07c79460f0> is not in list
From a bisect, here's the regressing commit:
commit af44e7f258eabce4f9e7a9731b3d3ef9ff9274ba
Author: Colomban Wendling <cwendling@hypra.fr>
Date: Fri Oct 7 10:40:30 2022 +0000
spd: Make sure sayAll progress callback gets the correct offsets
src/orca/speechdispatcherfactory.py | 2 +-
src/orca/speechserver.py | 7 +++++++