Skip to content

fix(composer): forward Ctrl+Arrow to the terminal on Windows#65

Open
DocInTardis wants to merge 1 commit intoblueberrycongee:mainfrom
DocInTardis:fix/windows-ctrl-arrow
Open

fix(composer): forward Ctrl+Arrow to the terminal on Windows#65
DocInTardis wants to merge 1 commit intoblueberrycongee:mainfrom
DocInTardis:fix/windows-ctrl-arrow

Conversation

@DocInTardis
Copy link
Contributor

@DocInTardis DocInTardis commented Mar 22, 2026

Summary

  • forward Ctrl+Arrow from the Composer to the PTY on Windows, matching the existing macOS Cmd+Arrow behavior

Changes

  • extract Composer passthrough key handling into getComposerPassthroughSequence()
  • use the platform-aware primary modifier logic instead of checking event.metaKey directly
  • keep plain arrow keys in the Composer when draft text is present
  • add regression tests for Windows Ctrl+Arrow and plain-arrow behavior in tests/composer-input-behavior.test.ts

Testing

  • node --experimental-strip-types --test tests/composer-input-behavior.test.ts

Closes #37

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.

ComposerBar: Ctrl+Arrow not forwarded to terminal on Windows

1 participant