Skip to content

Commit

Permalink
Implement the runtime check for UIA console by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofdusk committed Jun 21, 2022
1 parent 6b48d3a commit c80f421
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/UIAHandler/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,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 check that _getConhostAPILevel >= FORMATTED.
return False
return _getConhostAPILevel(hwnd) >= WinConsoleAPILevel.FORMATTED


@lru_cache(maxsize=10)
Expand Down

0 comments on commit c80f421

Please sign in to comment.