Skip to content

Enhance Mac keyboard mapping with layout-dependent accelerators - #328867

Draft
sbatten wants to merge 1 commit into
mainfrom
sbatten/surprising-scallop
Draft

Enhance Mac keyboard mapping with layout-dependent accelerators#328867
sbatten wants to merge 1 commit into
mainfrom
sbatten/surprising-scallop

Conversation

@sbatten

@sbatten sbatten commented Aug 3, 2026

Copy link
Copy Markdown
Member

fixes #328194
Improve keyboard mapping for Mac by adding layout-dependent accelerators and updating related test cases. This enhancement ensures better compatibility with various keyboard layouts.

Copilot AI review requested due to automatic review settings August 3, 2026 23:26
@sbatten sbatten self-assigned this Aug 3, 2026
@sbatten
sbatten requested a review from alexdima August 3, 2026 23:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds native macOS menu accelerators for layout-dependent keys, fixing misaligned shortcut labels.

Changes:

  • Derives safe Electron accelerators from printable layout characters.
  • Handles dead keys, shifted symbols, and named characters.
  • Updates focused tests and mapping snapshots.
Show a summary per file
File Description
macLinuxKeyboardMapper.ts Generates safe macOS accelerators for unstable scan codes.
macLinuxKeyboardMapper.test.ts Tests supported and rejected accelerator characters.
mac_de_ch.txt Updates Swiss German mapping expectations.
mac_zh_hant2.txt Updates Traditional Chinese mapping expectations.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zoom menus are not properly formated

2 participants