Windows 11: suppress UIA focus event on InputSite pane window when switching tasks#12944
Conversation
…e window in Windows 11. Re nvaccess#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.
|
CC @codeofdusk |
See test results for failed build of commit 3515249bf6 |
|
+1 for merging into 2021.3 if possible - this problem is quite annoying when using win 11. |
|
A Spanish-speaking user has contacted us, reporting that he hears the message "Task Switching" when switching between windows in Windows 11, although in most cases NVDA only speaks the initial "T". Log fragment follows ("Conmutación de tareas" is "Task Switching" in Spanish). According to his report, this is reproducible also with add-ons disabled. Could the PR be related to this? |
|
Hi, highly unlikely. I also know that it sometimes happens with Narrator as well. Thanks.
|
Hi,
Would it be possible to put this into 2021.3 unless it should be delayed to 2022.1?
Link to issue number:
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):
Expected: NVDA will say "pane" in scenario 1, whereas NVDA will not say "pane" in scenario 2 when switching tasks.
Known issues with pull request:
None yet
Change log entries:
Bug fixes:
In Windows 11, NVDA will no longer announce "pane" when pressing Alt+Tab to switch between programs. (#12648)
Code Review Checklist:
-xchange log entries
Additional context:
This problem was reported on Feedback Hub several months ago. This PR was originally part of Wnidows App Essentials add-on but was delayed to see if newer Windows 11 builds resolves it (not resolved so far).
Thanks.