[PR #18483] Fix Ctrl+Insert does not copy the selected text from Command Palette #31545

Open
opened 2026-01-31 09:47:56 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18483

State: closed
Merged: Yes


Summary of the Pull Request

Fixes an issue where pressing CTRL + Insert does not copy text selected in the Command Palette. Instead, it closes it, and any text selected in the pane is copied to the clipboard.

References and Relevant Issues

This PR handles issue #9520.

Detailed Description of the Pull Request / Additional comments

Since Insert is a virtual key, I address the issue by adding a conditional check for CTRL with either Insert or C (previously, it only checked for CTRL with C) for the copy action in the Command Palette.

Validation Steps Performed

I followed the reproduction steps and verified that the actual behaviour matched the expected behaviour. All existing tests passed, but no new test was added.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18483 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Fixes an issue where pressing `CTRL` + `Insert` does not copy text selected in the Command Palette. Instead, it closes it, and any text selected in the pane is copied to the clipboard. ## References and Relevant Issues This PR handles issue #9520. ## Detailed Description of the Pull Request / Additional comments Since `Insert` is a virtual key, I address the issue by adding a conditional check for `CTRL` with either `Insert` or `C` (previously, it only checked for `CTRL` with `C`) for the copy action in the Command Palette. ## Validation Steps Performed I followed the reproduction steps and verified that the actual behaviour matched the expected behaviour. All existing tests passed, but no new test was added. ## PR Checklist - [x] Closes #9520 - [x] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:47:56 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31545