Skip to content

Fix song select dropdowns not being navigable with keyboard#37158

Merged
peppy merged 3 commits intoppy:masterfrom
Joehuu:fix-song-select-dropdown-keyboard-nav
Apr 1, 2026
Merged

Fix song select dropdowns not being navigable with keyboard#37158
peppy merged 3 commits intoppy:masterfrom
Joehuu:fix-song-select-dropdown-keyboard-nav

Conversation

@Joehuu
Copy link
Copy Markdown
Member

@Joehuu Joehuu commented Mar 31, 2026

Uses the global action variant of up and down for dropdown menus. It is already used in multiplayer/playlist room/beatmap navigation and gameplay menu overlays.

Comment wording is derived from:

if (e.Key == Key.Escape)
return false; // disable the framework-level handling of escape key for conformity (we use GlobalAction.Back).

Comment on lines +169 to +171
// disable the framework-level handling of up and down key for conformity (we use GlobalAction.SelectPrevious and SelectNext).
if (e.Key == Key.Up || e.Key == Key.Down)
return false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good reason to disable this rather than just let it work as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I was just followingFocusedTextBox.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how much I agree with that, so let's maybe just not do it for now. I can't imagine a scenario where a user would expect up and down to not traverse items.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but osu!-specific item flow implementations, as I mentioned in the PR description, are only using global actions with no fallback of hardcoded up and down. Out of scope but something to think about / apply later.

I'll just keep the framework-level handling to keep things going, doesn't seem to conflict with anything.

@peppy peppy self-requested a review April 1, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Up/down arrow keys with collection search dropdown changes beatmap selection, not collection (including Song Select v2)

2 participants