Skip to content
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 support for Ctrl-Tab to Playlist tabs and Tab stack #817

Merged
merged 1 commit into from
Oct 29, 2023
Merged

Conversation

reupen
Copy link
Owner

@reupen reupen commented Oct 24, 2023

Resolves #146

This adds support for using Ctrl-Tab and Shift-Ctrl-Tab to switch tabs in the Playlist tabs and Tab stack panels.

This wasn't straightforward to implement; both component have little control over the contents of children, and can also contain nested tabs. Nonetheless, this solution should handle most scenarios well.

Additionally, the existing code to update the keyboard focus when switching tabs in the Tab stack wasn't working correctly. This has been fixed as part of this, and the focus is now set to the first focusable element in the new tab (unless the tabs themselves were previously focused, or the new tab doesn't have any focusable children).

This adds support for using Ctrl-Tab and Shift-Ctrl-Tab to switch tabs in the Playlist tabs and Tab stack panels.

This wasn't straightforward to implement; both component have little control over the contents of children, and  can also contain nested tabs. Nonetheless, this solution should handle most scenarios well.
@reupen reupen marked this pull request as ready for review October 29, 2023 16:46
@reupen reupen merged commit a26afdd into main Oct 29, 2023
5 checks passed
@reupen reupen deleted the tab-ctrl-tab branch October 29, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Ctrl+Tab support to Tab stack and Playlist tabs
1 participant