Skip to content

[Bug]: Change appearance shortcut fails on macOS AZERTY (Option+Shift+Cmd+A) #15954

Description

@nbros

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Use a MacBook Pro with a French AZERTY keyboard layout.
  2. Open T3 Code and keep focus outside the integrated terminal.
  3. Open the command palette and search for "Change appearance". It advertises Option+Shift+Cmd+A (⌥⇧⌘A).
  4. Close the palette and press that combination using the key labeled A on the AZERTY keyboard.
  5. Press it several times to distinguish a missed shortcut from a transition between System and the same effective light/dark mode.

Expected behavior

The advertised shortcut should cycle System → Light → Dark → System, using the A key from the active keyboard layout.

Actual behavior

The advertised shortcut does not appear to change the appearance on my MacBook Pro with an AZERTY keyboard.

Suspected cause (source inspection)

In apps/web/src/keybindings.ts, resolveEventKeys falls back to the letter in KeyboardEvent.code when event.key is not a Latin a–z character. Option can turn a letter into a symbol. On AZERTY, the key labeled A has code KeyQ, so this fallback can resolve it as q rather than a and miss the default mod+alt+shift+a binding.

For example, a synthetic event with key: "Æ", code: "KeyQ", metaKey: true, altKey: true and shiftKey: true exercises this mismatch. This is a unit-test input, not a captured keyboard-event log from my machine.

Related reports

I did not find an existing report specifically covering Option-modified A on AZERTY for appearance.cycle.

Impact

Minor bug or occasional failure

Version or commit

Personal build based on upstream v0.0.45; shortcut matching inspected in the upstream source as well.

Environment

macOS, MacBook Pro, French AZERTY keyboard. macOS 26.7.1

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Use the command palette → Change appearance and select a mode manually, or assign a shortcut without Option in Settings → Keybindings.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions