-
Notifications
You must be signed in to change notification settings - Fork 980
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
Make the toolbar menu items support the support space key. #11520
Make the toolbar menu items support the support space key. #11520
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11520 +/- ##
===================================================
+ Coverage 74.39859% 74.56175% +0.16316%
===================================================
Files 3032 3041 +9
Lines 628149 629780 +1631
Branches 46828 46845 +17
===================================================
+ Hits 467334 469575 +2241
+ Misses 157465 156843 -622
- Partials 3350 3362 +12
Flags with carried forward coverage won't be shown. Click here to find out more. |
All LGTM |
src/System.Windows.Forms/src/System/Windows/Forms/Controls/ToolStrips/ToolStripMenuItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/Controls/ToolStrips/ToolStripDropDown.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.
LGTM 👍
@@ -1253,6 +1253,7 @@ protected override void OnItemClicked(ToolStripItemClickedEventArgs e) | |||
|| !(dismissingItem.HasDropDownItems)) | |||
{ // clicking on a item w/dropdown does not dismiss window | |||
Close(ToolStripDropDownCloseReason.ItemClicked); | |||
SelectPreviousToolStrip(); |
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.
@SimonZhao888 - Perhaps this line requires additional checks, sometime focus should not return to the owner item. See #11909
Fixes #11449
Proposed changes
Customer Impact
Regression?
Risk
-Minimal
Screenshots
Before
After
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow