Skip to content

No F21-F24 keys in xfree86_scancode_table2 #13238

@Sentmoraap

Description

@Sentmoraap

Is there a reason for not having the keys F21 to F24 in xfree86_scancode_table2 in events/scancodes_xfree86.h? I have not found where this list comes from and why some keys are in the linux scancode table but not in the xfree86 scancode table.

On Linux distributions those keys are mapped by default to the functions in comment (e.g. F20 mutes the mic). I use a partially remappable keyboard, with keys programmed to send F19-F24 so I can remap them to something else with XKB. On X using RedirectKey (so F21 is seen by programs as a key with the Tab scancode and Tab keysym) works well, but it’s not supported on Wayland so only the keysyms are changed.

I noticed the problem when using the text editor Lite-XL. With a unmodified SDL3 the library reports SDL_SCANCODE_UNKNOWN so the tab (F21), insert (F22) and escape (F23) keys does not work. With a modified SDL with F21-F24 added to this table it works fine.

So is there a good reason to not have those keys in this table?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions