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

Đang mở Phù hợp với người mới
#15,954 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@nateEc đang làm issue này rồi.

Từ ngày 23/10/2026.

  • #24034 của @nateEc — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Bắt đầu tại apps/web/src/keybindings.ts và kiểm tra resolveEventKeys, hàm mà báo cáo cho biết sẽ dự phòng bằng KeyboardEvent.code khi event.key không phải là chữ cái Latin. Thêm một kiểm thử đơn vị cho sự kiện Option+Shift+Cmd tổng hợp được mô tả, với key "Æ" và code "KeyQ", sau đó chạy các kiểm thử keybinding liên quan. Công việc được xem là hoàn tất khi phím A của bố cục đang hoạt động kích hoạt phím tắt giao diện được công bố mà không làm hỏng cơ chế dự phòng hiện có cho phím vật lý.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
10 giờ 25 phút
Pull request đã merge (30 ngày)
113

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.