Skip to content

v1.4.2 — fix mod+shift+. shortcut on Windows#33

Merged
mattenarle10 merged 2 commits into
mainfrom
fix/v1.4.2-shifted-keys
May 21, 2026
Merged

v1.4.2 — fix mod+shift+. shortcut on Windows#33
mattenarle10 merged 2 commits into
mainfrom
fix/v1.4.2-shifted-keys

Conversation

@mattenarle10

Copy link
Copy Markdown
Owner

Summary

Closes #32. Fixes mod+shift+. (editor-only toggle) silently dropping on Windows (and would on any layout where shift+. produces a different e.key).

Root cause

use-shortcuts.ts:34 matched e.key.toLowerCase() === wantKey. On US layouts, Shift+. produces e.key === ">", so the literal "." in shortcut definitions never matched when shift was held. macOS happened to dodge it because users typically discover the command via the palette, not the shortcut.

Fix

Added SHIFTED_KEY_CODES map (."Period", ,"Comma", etc) and an e.code fallback: if e.key doesn't match the literal shortcut char, also try matching against the physical key code. Layout-independent + future-proofs other shifted-symbol shortcuts.

Test plan

  • type-check + build clean
  • root-cause traced
  • CI tri-platform build (auto)
  • arijit verifies on Windows after auto-update

🤖 Generated with Claude Code

@mattenarle10 mattenarle10 merged commit 14992a6 into main May 21, 2026
2 checks passed
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.

[bug] editor only mode does not work

1 participant