-
Notifications
You must be signed in to change notification settings - Fork 986
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
Add UIA_AutomationFocusChangedEventId to SelectInternal of the TextBoxBase.cs #12479
Open
LeafShi1
wants to merge
3
commits into
dotnet:main
Choose a base branch
from
LeafShi1:Issue_12421_fix_Narrator_announced_incomplete
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add UIA_AutomationFocusChangedEventId to SelectInternal of the TextBoxBase.cs #12479
LeafShi1
wants to merge
3
commits into
dotnet:main
from
LeafShi1:Issue_12421_fix_Narrator_announced_incomplete
+8
−6
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ropertyGridView.GridViewTextBox
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12479 +/- ##
===================================================
+ Coverage 75.73242% 75.73942% +0.00699%
===================================================
Files 3153 3157 +4
Lines 635807 636106 +299
Branches 46975 47004 +29
===================================================
+ Hits 481512 481783 +271
+ Misses 150870 150866 -4
- Partials 3425 3457 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
LeafShi1
added
the
waiting-review
This item is waiting on review by one or more members of team
label
Nov 15, 2024
…ngle refocus the current text box
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/System.Windows.Forms/src/System/Windows/Forms/Controls/TextBox/TextBoxBase.cs
Outdated
Show resolved
Hide resolved
LeafShi1
changed the title
Override SelectInternal to add UIA_AutomationFocusChangedEventId in PropertyGridView.GridViewTextBox
Add UIA_AutomationFocusChangedEventId to SelectInternal of the TextBoxBase.cs
Nov 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #12421
Root Cause:
The highlighted part cannot be read completely because when using the up and down keys to switch options, the AI rectangle does not refocus the current edit text box, but directly switches from the rectangle of the previous option to the current rectangle size, as shown in the figure below
So the idea of repairing it is to focus the AI rectangle to the position (0, 0) first when executing CommitValue, and then focus on the new value
Proposed changes
SelectInternal
of theTextBoxBase
that when the selected text is (0, 0), let the AI rectangle refocus the current text boxCustomer Impact
Regression?
Risk
Screenshots
Before
When switching the items by using up/down keyboard arrow that without expand the dropdown list panel, Narrator can not announced the property item entirety.
After
When switching the items by using up/down keyboard arrow that without expand the dropdown list panel, Narrator announced the property item entirety.
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow