Skip to content

Commit

Permalink
Shell experience host/Windows 11 24H2: Control Center Window is a goo…
Browse files Browse the repository at this point in the history
…d UIA window, enabling mouse and touch interaction. Re nvaccess#16348.

Mark 'ControlCenterWindow' as good UIA window to enable mouse and touch interaction. This is yet another case of Windows 11 UI interaction issue due to XAML window source element.
  • Loading branch information
josephsl committed Apr 6, 2024
1 parent 209434a commit 63030e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/appModules/shellexperiencehost.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from UIAHandler import IUIAutomationElement, UIA_NamePropertyId
import controlTypes
import ui
import winUser
from winAPI.types import HWNDValT


class CalendarViewDayItem(UIA):
Expand Down Expand Up @@ -72,3 +74,9 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList):
and obj.UIAElement.cachedClassName == "CalendarViewDayItem"
):
clsList.insert(0, CalendarViewDayItem)

def isGoodUIAWindow(self, hwnd: HWNDValT) -> bool:
# #16348: reclassify Windows 11 24H2 control center window as UIA to allow mouse/touch interaction.
if winUser.getClassName(hwnd) == "ControlCenterWindow":
return True
return False

0 comments on commit 63030e5

Please sign in to comment.