Skip to content

Commit

Permalink
Revert "UIA with conhost / openconsole on Win 21H1 comError (PR nvacc…
Browse files Browse the repository at this point in the history
…ess#11039)"

This reverts commit e274931.
  • Loading branch information
codeofdusk committed Jul 2, 2021
1 parent 3248a3c commit 19f9574
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions source/NVDAObjects/UIA/winConsoleUIA.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,18 +329,6 @@ def _get_TextInfo(self):
else ConsoleUIATextInfoWorkaroundEndInclusive
)

def detectPossibleSelectionChange(self):
try:
return super().detectPossibleSelectionChange()
except COMError:
# microsoft/terminal#5399: when attempting to compare text ranges
# from the standard and alt mode buffers, E_FAIL is returned.
# Downgrade this to a debugWarning.
log.debugWarning((
"Exception raised when comparing selections, "
"probably due to a switch to/from the alt buffer."
), exc_info=True)


def findExtraOverlayClasses(obj, clsList):
if obj.UIAElement.cachedAutomationId == "Text Area":
Expand Down

0 comments on commit 19f9574

Please sign in to comment.