Skip to content

Commit 4864469

Browse files
Update source/NVDAObjects/UIA/winConsoleUIA.py
Co-Authored-By: Reef Turner <feerrenrut@users.noreply.github.com>
1 parent 6ff510a commit 4864469

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

source/NVDAObjects/UIA/winConsoleUIA.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ class WinConsoleUIA(KeyboardHandlerBasedTypedCharSupport):
238238
#: Use our custom textInfo for UIA consoles.
239239
#: This fixes expand/collapse, implements word movement,
240240
# and bounds review to the visible text.
241-
TextInfo = consoleUIATextInfo
241+
# Overriding _get_TextInfo and thus the TextInfo property on NVDAObjects.UIA.UIA
242+
# consoleUIATextInfo fixes expand/collapse, implements word movement, and
243+
# bounds review to the visible text.
244+
def _get_TextInfo(self):
245+
return consoleUIATextInfo
242246
#: the caret in consoles can take a while to move on Windows 10 1903 and later.
243247
_caretMovementTimeoutMultiplier = 1.5
244248

0 commit comments

Comments
 (0)