From 3248a3cfd98b41095cfdd68289e54b5a480c6f55 Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Mon, 24 May 2021 03:50:11 -0400 Subject: [PATCH] Implement the runtime check for UIA console by default. --- source/UIAUtils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/UIAUtils.py b/source/UIAUtils.py index 533da15ec10..05aef91007d 100644 --- a/source/UIAUtils.py +++ b/source/UIAUtils.py @@ -297,9 +297,7 @@ def _shouldUseUIAConsole(hwnd: int) -> bool: else: # #7497: the UIA implementation in old conhost is incomplete, therefore we # should ignore it. - # When the UIA implementation is improved, the below line will be replaced - # with a call to _isImprovedConhostTextRangeAvailable. - return False + return _isImprovedConhostTextRangeAvailable(hwnd) @lru_cache(maxsize=10)