-
-
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
Fix issue with certain SECTION elements not being recognized as editable controls in Visual Studio Code #17572
Conversation
…ble controls in Visual Studio Code
WalkthroughThe pull request introduces a modification to the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)source/appModules/code.py (2)Pattern Pattern 🔇 Additional comments (2)source/appModules/code.py (2)
These comments reference issue #15159, which might have been superseded or closed by now. Ensure this workaround is still needed. If that issue is already resolved, consider removing or updating this comment.
While this condition ensures that 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
|
Link to issue number:
closed #17525
Summary of the issue:
In Visual Studio Code, NVDA was unable to correctly read certain non-standard editable text controls, specifically those with the
SECTION
role that have an editable state. These controls could be edited by users but were not recognized asEDITABLETEXT
by NVDA.Description of user-facing changes:
This fix ensures that NVDA correctly recognizes and reads non-standard editable text controls, such as those with the
SECTION
role and an editable state, in Visual Studio Code.Description of development approach:
In #16248, we introduced support for text-reading commands for objects in Visual Studio Code. Initially, we used
obj.role == controlTypes.Role.EDITABLETEXT
as the check for editable text fields. However, this caused a regression for some controls, specificallySECTION
elements in VS Code that were editable but did not have theEDITABLETEXT
role. These controls have an editable state but were overlooked by NVDA. This fix updates the logic to account for such cases, ensuring these elements are treated as editable controls.Testing strategy:
Manual testing
Known issues with pull request:
no known issues
Code Review Checklist:
Summary by CodeRabbit
The release notes focus on the functional changes while avoiding technical implementation details, highlighting the improvements in object state handling for better user experience.