Skip to content

fix(editor): use platform-aware Shift modifier in empty-state shortcut hint#20

Merged
tyql688 merged 1 commit into
tyql688:masterfrom
bet4it:fix/editor-shift-key-hint
Jul 10, 2026
Merged

fix(editor): use platform-aware Shift modifier in empty-state shortcut hint#20
tyql688 merged 1 commit into
tyql688:masterfrom
bet4it:fix/editor-shift-key-hint

Conversation

@bet4it

@bet4it bet4it commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

On non-Mac platforms, the empty-state shortcut hint in EditorArea was rendering ⇧Ctrl+F — mixing the Mac-specific symbol with the Windows/Linux Ctrl+ text.

Root cause: The was hard-coded, while the adjacent modKey variable was already platform-aware.

Fix: Introduce a parallel shiftKey variable (same pattern as modKey) and use it in the hint:

  • macOS: ⌘⇧F
  • Windows / Linux: Ctrl+Shift+F (Ctrl before Shift, matching mainstream convention)

@bet4it bet4it force-pushed the fix/editor-shift-key-hint branch from c639290 to 013b0c1 Compare July 9, 2026 15:21
@tyql688 tyql688 merged commit 48ebbc9 into tyql688:master Jul 10, 2026
3 checks passed
@bet4it bet4it deleted the fix/editor-shift-key-hint branch July 10, 2026 15:43
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.

2 participants