Skip to content

Commit 45dfc05

Browse files
authored
Merge 0f0dbbd into bc164e2
2 parents bc164e2 + 0f0dbbd commit 45dfc05

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

source/appModules/explorer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: UTF-8 -*-
22
# A part of NonVisual Desktop Access (NVDA)
3-
# Copyright (C) 2006-2022 NV Access Limited, Joseph Lee, Łukasz Golonka, Julien Cochuyt
3+
# Copyright (C) 2006-2023 NV Access Limited, Joseph Lee, Łukasz Golonka, Julien Cochuyt
44
# This file is covered by the GNU General Public License.
55
# See the file COPYING for more details.
66

@@ -504,7 +504,7 @@ def event_gainFocus(self, obj, nextHandler):
504504

505505
nextHandler()
506506

507-
def isGoodUIAWindow(self, hwnd):
507+
def isGoodUIAWindow(self, hwnd: int) -> bool:
508508
currentWinVer = winVersion.getWinVer()
509509
# #9204: shell raises window open event for emoji panel in build 18305 and later.
510510
if (
@@ -528,6 +528,7 @@ def isGoodUIAWindow(self, hwnd):
528528
# Top-level window class names from Windows 11 shell features
529529
"Shell_InputSwitchTopLevelWindow", # Language switcher
530530
"XamlExplorerHostIslandWindow", # Task View and Snap Layouts
531+
"TopLevelWindowForOverflowXamlIsland", # #14539: redesigned systray overflow in 22H2
531532
)
532533
# #13717: on some systems, Windows 11 shell elements are reported as IAccessible,
533534
# notably Start button, causing IAccessible handler to report attribute error when handling events.

source/appModules/openwith.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A part of NonVisual Desktop Access (NVDA)
2-
# Copyright (C) 2011-2022 NV Access Limited, Joseph Lee
2+
# Copyright (C) 2011-2023 NV Access Limited, Joseph Lee
33
# This file is covered by the GNU General Public License.
44
# See the file COPYING for more details.
55

@@ -40,9 +40,14 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList):
4040
elif automationId == "ImmersiveOpenWithFlyout":
4141
clsList.insert(0, ImmersiveOpenWithFlyout)
4242

43-
def isGoodUIAWindow(self, hwnd):
44-
# #11335: Open With dialog isn't read in Windows 10 Version 2004 (May 2020 Update).
45-
# Note that treating the below window as a UIA window will make NVDA no longer announce "pane".
46-
if winUser.getClassName(hwnd) == "Shell_Flyout":
43+
def isGoodUIAWindow(self, hwnd: int) -> bool:
44+
if winUser.getClassName(hwnd) in (
45+
# #11335: Open With dialog isn't read in Windows 10 Version 2004 (May 2020 Update).
46+
# Note that treating the below window as a UIA window will make NVDA no longer announce "pane".
47+
"Shell_Flyout",
48+
# #14538: Windows 11 Version 22H2 (2022 Update) comes with a modernized Open With dialog
49+
# but prevents proper mouse and touch interaction.
50+
"Open With",
51+
):
4752
return True
4853
return False

0 commit comments

Comments
 (0)