Windows 11: suppress UIA focus event on InputSite pane window when switching tasks (#12944)
Closes #12648
Summary of the issue:
When switching tasks in Windows 11, a "pane" window gets focused instead of the app being switched to in some cases.
Description of how this pull request fixes the issue:
Treat InputSite window class window as a Windows 10 MultitaskingViewFrameWindow object which suppresses UIA focus event.
Testing strategy:
Manual testing on Windows 11 (prerequisite: Windows App Essentials add-on must be disabled):
Without the patch applied, try switching between tasks.
With the patch applied, try switching between tasks.
Expected: NVDA will say "pane" in scenario 1, whereas NVDA will not say "pane" in scenario 2 when switching tasks.
Commits:
* Explorer app module: update copyright year
* appModules/Explorer: suppress UIA focus event for task switching frame window in Windows 11. Re #12648.
When switching tasks in Windows 11, sometimes an unknown 'pane' window gets focused instead of the app being switched to. Therefore detect this pane window and treat it as a Windows 10 multitasking view frame window which suppresses UIA focus event.
* update changes
Co-authored-by: buddsean <sean@nvaccess.org>