-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixed the issue where edit textBox loses focus when using up/down to switch property values on edit textBox #12431
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12431 +/- ##
===================================================
+ Coverage 75.65407% 75.73581% +0.08173%
===================================================
Files 3150 3153 +3
Lines 635831 635797 -34
Branches 47020 46973 -47
===================================================
+ Hits 481032 481526 +494
+ Misses 151352 150839 -513
+ Partials 3447 3432 -15
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The private dlls have been tested, no regression issue was found. |
...orms/src/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal/PropertyGridView.cs
Show resolved
Hide resolved
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.
Tested the changes and the TextBox does not lose focus when you press up/down.
Changes LGTM.
Tested this PR change with several regression issues found. Need to investigate. |
9bf352b
to
7b9e0f2
Compare
@Tanya-Solyanik The second commit caused 3 unstabled regression issues, |
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.
ok, let's remove the fullRefresh
test.
…switch property values on edit textBox (dotnet#12431) * Fix editor text box focus issue when switching value property grid view * Override function SelectInternal in file PropertyGridView.GridViewTextBox.cs * Removing fullRefresh condition from function Refresh
…r experience in dropdown type editors in property grid (#12605) Backport of #12508, #12431, #12356 and #12479 to release/9.0 Fixes #12607 NET10 Bugs: #12434, #12421, #12440, #12031 Bug Description There are four issues that occur when using the up/down keys to switch property values in the property page. When navigating to "Auto Size" dropdown using the up/down arrow keys, it is getting auto selected without hitting ENTER After using Tab to switch property values, then using the up/down keys to switch items in the drop-down box expanded by F4 will cause the drop-down box to collapse directly [Accessibility] When using up/down to toggle property value on edit text box, The Accessibility rectangle focuses on the entire property row instead of the original edit text box [Accessibility] Narrator cannot announce items correctly when switching the items by using up/down keyboard arrow that without expand the dropdown list panel Customer Impact PropertyGrid drop down type editor does not support conventional keyboard navigation. Usually, selection is committed when the ENTER key is pressed. However, in this case value is committed on the Down arrow press. Then the drop down list is expanded, the screen reader user might want to navigate through all values in the drop down using the arrows, on each arrow key press the new item should be presented (and announced) in the selection text box, however, the drop down is closed on the first arrow key. According to the accessibility SMEs, this is a major problem - the keyboard users are losing their work by committing a wrong value. Screen reader user don't get correct feedback when navigating through the drop down list.
Fixes #12440
Proposed changes
Customer Impact
Regression?
Risk
Screenshots
Before
The rectangle always back to focus on entire row after using the up/down changed the property values directly in the edit textbox

After
The rectangle in the edit text box always stays in the edit textbox when changing the property value using the up/down buttons

Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow