nvda
fedf6669 - Windows 11 22H2: add good UIA window class names for system tray overflow window and Open With dialog to allow mouse and touch interaction (#14540)

Commit
2 years ago
Windows 11 22H2: add good UIA window class names for system tray overflow window and Open With dialog to allow mouse and touch interaction (#14540) Closes #14538 Closes #14539 Summary of the issue: Mouse and/or touch interaction does not work properly for Windows 11 22H2 UI, including upcoming redesigned system tray overflow window and Open With dialog. Description of user facing changes Mouse and touch interaction will work when opening system tray overflow window and Open With dialog in Windows 11 2022 Update. Description of development approach Edited "isGoodUIAWindow" found in File Explorer and Open With app modules to classify the following window class names as good UIA windows: File Explorer: TopLevelWindowForOverflowXamlIsland (upcoming redesigned system tray overflow window) Open With: Open With (top-level window for the dialog) Commits: * appModules/openwith: recognize 'Open With' window class as a good UIA window. Re #14538. Windows 11 22H2 (at least newer updates) include modernized Open With dialog powered by WinUI, meaning no proper mouse and/or touch interaction. Therefore treat the top window for this dialog as a good UIA window so mouse and touch interaction can work properly. Also, rewrite isGoodUIAWindow method with one window class name per line. * appModules/openwith: add typing information for isGoodUIAWindow method * appModules/explorer: add 'TopLevelWindowForOverflowXamlIsland' as a good UIA window. Re #14539. Later revisions of Windows 11 Version 22H2 (2022 Update) comes with redesigned system tray overflow window (class name: TopLevelWindowForOverflowXamlIsland) but without proper mouse and touch interaction from NVDA. Therefore, add the new class as a good UIA window so mouse and touch interaction can work. * appModules/explorer: add typing information for isGoodUIAWindow method. * appModules/explorer and openwith: update copyright year * appModules/explorer: hwnd: int -> hwnd type Co-authored-by: Sean Budd <seanbudd123@gmail.com> * appModules/openwith: hwnd: int -> hwnd type * appModules/explorer and openwith: move winAPI import to top of the module. Suggested by Sean Budd (NV Access): move winAPI import to the top of the modules. * update changes Co-authored-by: Sean Budd <sean@nvaccess.org>
Author
Parents
Loading