Weird focus change after multiline paste #21753

Open
opened 2026-01-31 07:53:54 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (May 22, 2024).

Windows Terminal version

1.21.1272.0

Windows build number

10.0.19045.4412

Other Software

No response

Steps to reproduce

  1. Enable the rightClickContextMenu option.
  2. Enable the multiLinePasteWarning option.
  3. Copy multiple lines of text to the clipboard from somewhere.
  4. Open two cmd shell tabs.
  5. In the second tab, execute the following command: copy con somefilename.txt
  6. Right click in the terminal window and choose the paste option from the context menu.
  7. When the warning dialog appears, select Paste anyway.
  8. Once the text has pasted, press Ctrl+Z then Enter.

Expected Behavior

You should see 1 files(s) copied and the pasted content should be written to the file.

Actual Behavior

The Ctrl+Z key press has no effect, and Enter switches the focus to the first tab.

Originally created by @j4james on GitHub (May 22, 2024). ### Windows Terminal version 1.21.1272.0 ### Windows build number 10.0.19045.4412 ### Other Software _No response_ ### Steps to reproduce 1. Enable the `rightClickContextMenu` option. 2. Enable the `multiLinePasteWarning` option. 3. Copy multiple lines of text to the clipboard from somewhere. 4. Open two cmd shell tabs. 5. In the second tab, execute the following command: `copy con somefilename.txt` 6. Right click in the terminal window and choose the paste option from the context menu. 7. When the warning dialog appears, select *Paste anyway*. 8. Once the text has pasted, press <kbd>Ctrl+Z</kbd> then <kbd>Enter</kbd>. ### Expected Behavior You should see `1 files(s) copied` and the pasted content should be written to the file. ### Actual Behavior The <kbd>Ctrl+Z</kbd> key press has no effect, and <kbd>Enter</kbd> switches the focus to the first tab.
claunia added the Issue-BugProduct-TerminalArea-UserInterface labels 2026-01-31 07:53:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21753