Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#15,954 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Inizia da apps/web/src/keybindings.ts ed esamina resolveEventKeys, che secondo la segnalazione ripiega su KeyboardEvent.code quando event.key non è una lettera latina. Aggiungi un test unitario per l’evento sintetico Option+Shift+Cmd descritto, con key "Æ" e code "KeyQ", quindi esegui i test pertinenti dei keybinding. Il lavoro è completato quando il tasto A del layout attivo attiva la scorciatoia di aspetto indicata senza compromettere il fallback esistente per i tasti fisici.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug via-triage
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
  • #2261: Option-modified letter shortcuts failing on macOS (closed).
  • #4434 / #4469: Latin layout letters take precedence over physical positions, but the physical fallback remains for Option-generated symbols.
  • #13229: the recorder displays US key positions for non-US punctuation (open); related layout handling, but a different symptom.

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.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
7h 14m
PR unite (30g)
201

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.