Windows 11 clipboard history: redirect NVDA focus if Windows Input Experience window receives focus when clipboard history window closes (#16534)
Closes #16347
Summary of the issue:
In Windows 11, Windows Input Experience window receives focus when clipboard history closes.
Description of user facing changes
NVDA will no longer appear to get stuck when closing Windows 11 clipboard history.
Description of development approach
In emoji panel app module, added again focus event handler that will check if Windows Input Experience window receives focus in Windows 11, and if yes and if no events are pending, will queue gain focus on system focus control (obj.objectWithFocus()).
Testing strategy:
Manual testing: in Windows 11, open clipboard history, then press Escape to close it.
Known issues with pull request: