Skip to content

Keep host modifier chords out of pane commands and kill answers - #1278

Merged
nedtwigg merged 3 commits into
mainfrom
audit-keyboard-modifiers
Oct 21, 2026
Merged

nedtwigg merged 3 commits into
mainfrom
audit-keyboard-modifiers

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Command mode treated modified keys as plain pane actions: Ctrl+X requested a kill, Ctrl+T toggled TODO, and Ctrl+- split a pane. A pane kill prompt could also accept a matching letter inside a host chord, unlike the existing Workspace confirmation.

Leave Cmd/Ctrl/Alt pane-action chords and Alt+Arrow navigation unhandled, preserving the explicit Cmd/Ctrl arrow swaps. Share the Workspace confirmation's answer-key predicate with pane confirmation so modifiers and host chords neither accept nor dismiss it. Shift-produced punctuation and uppercase confirmation letters retain their behavior. Update layout and the shortcut reference.

Validation: 11 regressions failed before the fix. All 266 targeted keyboard, confirmation, and Wall tests pass, including existing swap/backtracking coverage. Library TypeScript, spec lint, Markdown lint, and diff checks pass.

Option/AltGr-produced symbol bindings remain available on international layouts. Four additional regressions reproduced the review finding; all 52 affected keyboard/confirmation tests and the type/spec/Markdown checks pass.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 091650a
Status: ✅  Deploy successful!
Preview URL: https://181468da.mouseterm.pages.dev
Branch Preview URL: https://audit-keyboard-modifiers.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The new modifier guard in handlePaneShortcuts also catches | when Option or AltGr typed it, which is how many European layouts produce that character (inline).

Comment thread lib/src/components/wall/keyboard/handle-pane-shortcuts.ts Outdated
@nedtwigg
nedtwigg merged commit 974a034 into main Oct 21, 2026
15 checks passed
@nedtwigg
nedtwigg deleted the audit-keyboard-modifiers branch October 21, 2026 16:15
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