-
-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 11 clipboard history: NVDA no longer announces history items when closing clipboard history interface #17361
Conversation
… history entries when closing the interface while entries are present. Re nvaccess#17308. In recent Windows 11 releases, live region change event is fired when opening and closing clipboard history while items are present. This may give an impression that clipboard history interface is opening with items present. On the other hand, if sensitive information was copied to the clipboard and not removed from history, these items will be announced when the clipboard history interface closes. Threfore, veto UIA live region change event at the object level by detecting clipboard history data item elements (role = data item, parent = history item (tale row) or clipboard history actions list). Event must be vetoed at the object level (NVDA object init method) because live region change event is fired after NVDA handles system focus while clipboard history interface is closed and NVDA expects no pending events (live region change event contradicts this).
@coderabbitai summary |
WalkthroughThe changes introduce a new method Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Thanks @josephsl |
Link to issue number:
Closes #17308
Summary of the issue:
In Windows 11, NVDA announces clipboard history items when closing the interface while items are present.
Description of user facing changes
NVDA will no longer announce clipboard items when closing Windows 11 clipboard history with items present.
Description of development approach
Windows 11 input exprience interface fires UIA live region change event when closing clipboard history with items present. Therefore, veto this event at the object level (NVDA object init event) to prevent item announcement and to help gain focus event handler (no events should be pending).
Testing strategy:
Manual testing (implemented in an add-on):
Expected: NVDA does not announce clipboard history items.
Known issues with pull request:
The approach should be revisited if Microsoft fixes this issue or clipboard history UI/event processing changes. Since clipboard may contain sensitive information, fixing from NVDA side is warranted for now.
Code Review Checklist:
Summary by CodeRabbit
Release Notes for NVDA 2024.1
New Features
Bug Fixes