Skip to content

Commit 3515249

Browse files
authored
Merge a47fcc6 into f8df880
2 parents f8df880 + a47fcc6 commit 3515249

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

source/appModules/explorer.py

Lines changed: 8 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-2020 NV Access Limited, Joseph Lee, Łukasz Golonka, Julien Cochuyt
3+
# Copyright (C) 2006-2021 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

@@ -341,7 +341,13 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList):
341341
clsList.insert(0, ImmersiveLauncher)
342342
elif uiaClassName == "ListViewItem" and obj.UIAElement.cachedAutomationId.startswith('Suggestion_'):
343343
clsList.insert(0, SuggestionListItem)
344-
elif uiaClassName == "MultitaskingViewFrame" and role == controlTypes.Role.WINDOW:
344+
# Multitasking view frame window
345+
elif (
346+
# Windows 10 and earlier
347+
(uiaClassName == "MultitaskingViewFrame" and role == controlTypes.Role.WINDOW)
348+
# Windows 11 where a pane window receives focus when switching tasks
349+
or (uiaClassName == "Windows.UI.Input.InputSite.WindowClass" and role == controlTypes.Role.PANE)
350+
):
345351
clsList.insert(0, MultitaskingViewFrameWindow)
346352
# Windows 10 task switch list
347353
elif role == controlTypes.Role.LISTITEM and (

0 commit comments

Comments
 (0)