-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 focus issue when profile selected from nested menu entry #15077
Fix focus issue when profile selected from nested menu entry #15077
Conversation
extra Closing event to prevent focus from switching to the tab bar when selecting a profile via mouse. microsoft#15049
@@ -855,6 +855,10 @@ namespace winrt::TerminalApp::implementation | |||
newTabFlyout.Opening([this](auto&&, auto&&) { | |||
_FocusCurrentTab(true); | |||
}); | |||
// Necessary for fly-out sub items to get focus on a tab before collapsing. Related to #15049 | |||
newTabFlyout.Closing([this](auto&&, auto&&) { | |||
_FocusCurrentTab(true); |
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.
@carlos-zamora, can you do an accessibility pass over this?
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.
Works great!
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.
Oh, dang, that's a small fix! Thanks!
I'm blocking only until Carlos (or someone else!) gets a chance to see how this works for accessibility/assistive tech tools like screen readers. I don't want to unduly damage the keyboarding experience 😄
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
1 similar comment
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Shhhhhh bot, this is something @carlos-zamora has to do a pass on, not OP |
Tested with NVDA. Works great! |
@carlos-zamora did you test it with Narrator |
Yup! Works fine too. |
Original bug report #15049 Relates to feature #1571 MenuFlyoutSubItem, when collapsing from profile selection, move focus back to the titlebar. An extra Closing event handler is needed to keep focus on the command shell. Closes #15049 (cherry picked from commit def3742) Service-Card-Id: 89002014 Service-Version: 1.17
Original bug report #15049
Relates to feature #1571
MenuFlyoutSubItem, when collapsing from profile selection, move focus back to the titlebar.
An extra Closing event handler is needed to keep focus on the command shell.
Closes #15049