Skip to content

Fix ctrl+/- not working on Windows Copilot CLI#305037

Merged
anthonykim1 merged 8 commits intomainfrom
anthonykim1/fixCopilotKeyboard
Mar 26, 2026
Merged

Fix ctrl+/- not working on Windows Copilot CLI#305037
anthonykim1 merged 8 commits intomainfrom
anthonykim1/fixCopilotKeyboard

Conversation

@anthonykim1
Copy link
Copy Markdown
Contributor

@anthonykim1 anthonykim1 commented Mar 26, 2026

Resolves: #305028

After this PR, should work like:

ctrl+and-.mp4

Related: #303712

@anthonykim1 anthonykim1 added this to the 1.114.0 milestone Mar 26, 2026
@anthonykim1 anthonykim1 self-assigned this Mar 26, 2026
Copilot AI review requested due to automatic review settings March 26, 2026 04:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes terminal zoom keybindings (Ctrl+/- on Windows, Cmd+=/- on macOS) being consumed by the shell (eg when kitty keyboard protocol is enabled), which impacts the Copilot CLI experience in the integrated terminal.

Changes:

  • Add workbench.action.zoomIn/zoomOut/zoomReset to DEFAULT_COMMANDS_TO_SKIP_SHELL so VS Code always handles these keybindings while the terminal is focused.
  • Refactor TerminalInstance test setup to await xtermReadyPromise and add coverage around key event interception + default skip list contents.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/terminal/test/browser/terminalInstance.test.ts Adds/adjusts tests to validate terminal key event interception behavior and asserts zoom commands are in the default skip list.
src/vs/workbench/contrib/terminal/common/terminal.ts Ensures zoom commands are skipped by the shell by default, preventing kitty protocol from consuming them.

@anthonykim1 anthonykim1 marked this pull request as ready for review March 26, 2026 05:02
@anthonykim1 anthonykim1 marked this pull request as draft March 26, 2026 05:07
@anthonykim1 anthonykim1 requested a review from Tyriar March 26, 2026 05:33
@anthonykim1 anthonykim1 marked this pull request as ready for review March 26, 2026 05:35
rzhao271
rzhao271 previously approved these changes Mar 26, 2026
@anthonykim1 anthonykim1 enabled auto-merge (squash) March 26, 2026 22:03
@anthonykim1 anthonykim1 merged commit 926cb66 into main Mar 26, 2026
18 checks passed
@anthonykim1 anthonykim1 deleted the anthonykim1/fixCopilotKeyboard branch March 26, 2026 22:32
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.

Ctrl + and ctrl - does not work on Copilot CLI in VS Code on Windows.

3 participants