Skip to content

Alt/Option accelerators do not reach clients on macOS #41

Description

@vejeta

On macOS, Alt+letter accelerators (Motif mnemonics, e.g. Alt+X) never
reach the client, so menu accelerators do not work in xwpe.

KMOD_ALT is present and convertModifierState already maps it to
Mod1Mask, but on macOS Option also emits a character via SDL_TEXTINPUT,
so the combination does not surface as a clean Mod1Mask KeyPress the Xt
or Motif accelerator path recognizes.

Could libx11-compat map Option to Alt the way XQuartz does with its
"Option keys send Alt_L/Alt_R" setting (see SDL issue #12007)? That
would make accelerators usable for any Motif or Xt client on macOS.

Env: macOS, sdl2-compat 2.32.70 on SDL3 3.4.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions