Skip to content

Fix support for F21 to F24 scancodes on Linux #13239

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

Merged
merged 1 commit into from
Jun 20, 2025
Merged

Conversation

Sentmoraap
Copy link
Contributor

Fixes the scancodes of F21-F24 keys being reported as SDL_SCANCODE_UNKNOWN in Linux distributions.

Because of this those keys were unsupported, whatever the keysyms bound to it.

Description

Add SDL_SCANCODE_F21 to SDL_SCANCODE_F24 in xfree86_scancode_table2, so these keys are recognized. SDL now sends events with key.scancode set to those scancodes, and e->key.key set to the corresponding keycode in the current keyboard layout.

The text input for those keys was already working and is unaffected.

Existing Issue(s)

#13238

@slouken slouken merged commit e4e29b8 into libsdl-org:main Jun 20, 2025
39 of 41 checks passed
@slouken
Copy link
Collaborator

slouken commented Jun 20, 2025

Merged, thanks!

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.

2 participants