Skip to content

Commit d7784c3

Browse files
authored
Merge 4864469 into ac5ab40
2 parents ac5ab40 + 4864469 commit d7784c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/NVDAObjects/UIA/winConsoleUIA.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,14 @@ class WinConsoleUIA(KeyboardHandlerBasedTypedCharSupport):
269269
#: Only process text changes every 30 ms, in case the console is getting
270270
#: a lot of text.
271271
STABILIZE_DELAY = 0.03
272-
_TextInfo = consoleUIATextInfo
272+
#: Use our custom textInfo for UIA consoles.
273+
#: This fixes expand/collapse, implements word movement,
274+
# and bounds review to the visible text.
275+
# Overriding _get_TextInfo and thus the TextInfo property on NVDAObjects.UIA.UIA
276+
# consoleUIATextInfo fixes expand/collapse, implements word movement, and
277+
# bounds review to the visible text.
278+
def _get_TextInfo(self):
279+
return consoleUIATextInfo
273280
#: the caret in consoles can take a while to move on Windows 10 1903 and later.
274281
_caretMovementTimeoutMultiplier = 1.5
275282

0 commit comments

Comments
 (0)