From 6c6cfad86d340955e29f6b14788c470629a7d2ed Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Mon, 12 Aug 2019 20:23:01 -0400 Subject: [PATCH] Possible fix for issue described in #1348 comments. --- source/NVDAObjects/UIA/winConsoleUIA.py | 5 ----- source/NVDAObjects/behaviors.py | 5 +++++ source/NVDAObjects/window/winConsole.py | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/source/NVDAObjects/UIA/winConsoleUIA.py b/source/NVDAObjects/UIA/winConsoleUIA.py index 212b25e2193..511e3ac5e4a 100644 --- a/source/NVDAObjects/UIA/winConsoleUIA.py +++ b/source/NVDAObjects/UIA/winConsoleUIA.py @@ -279,11 +279,6 @@ def _get_TextInfo(self): bounds review to the visible text.""" return consoleUIATextInfo - def _get_caretMovementDetectionUsesEvents(self): - """Using caret events in consoles sometimes causes the last character of the - prompt to be read when quickly deleting text.""" - return False - def _getTextLines(self): # Filter out extraneous empty lines from UIA return ( diff --git a/source/NVDAObjects/behaviors.py b/source/NVDAObjects/behaviors.py index 5bf6b3dc6ea..51882101597 100755 --- a/source/NVDAObjects/behaviors.py +++ b/source/NVDAObjects/behaviors.py @@ -367,6 +367,11 @@ def event_loseFocus(self): super(Terminal, self).event_loseFocus() self.stopMonitoring() + def _get_caretMovementDetectionUsesEvents(self): + """Using caret events in consoles sometimes causes the last character of the + prompt to be read when quickly deleting text.""" + return False + class KeyboardHandlerBasedTypedCharSupport(Terminal): """A Terminal object that also provides typed character support for diff --git a/source/NVDAObjects/window/winConsole.py b/source/NVDAObjects/window/winConsole.py index cb942e16161..b1e2ab9f83f 100644 --- a/source/NVDAObjects/window/winConsole.py +++ b/source/NVDAObjects/window/winConsole.py @@ -79,11 +79,6 @@ def reconnect(): self.startMonitoring() core.callLater(200,reconnect) - def _get_caretMovementDetectionUsesEvents(self): - """Using caret events in consoles sometimes causes the last character of the - prompt to be read when quickly deleting text.""" - return False - @script(gestures=[ "kb:enter", "kb:numpadEnter",