diff --git a/source/NVDAObjects/UIA/winConsoleUIA.py b/source/NVDAObjects/UIA/winConsoleUIA.py index b153922f36b..e7d58dd8482 100644 --- a/source/NVDAObjects/UIA/winConsoleUIA.py +++ b/source/NVDAObjects/UIA/winConsoleUIA.py @@ -269,7 +269,14 @@ class WinConsoleUIA(KeyboardHandlerBasedTypedCharSupport): #: Only process text changes every 30 ms, in case the console is getting #: a lot of text. STABILIZE_DELAY = 0.03 - _TextInfo = consoleUIATextInfo + #: Use our custom textInfo for UIA consoles. + #: This fixes expand/collapse, implements word movement, + # and bounds review to the visible text. + # Overriding _get_TextInfo and thus the TextInfo property on NVDAObjects.UIA.UIA + # consoleUIATextInfo fixes expand/collapse, implements word movement, and + # bounds review to the visible text. + def _get_TextInfo(self): + return consoleUIATextInfo #: the caret in consoles can take a while to move on Windows 10 1903 and later. _caretMovementTimeoutMultiplier = 1.5