"ctrl + v" inserts clipboard content instead of showing key bindings when checking "what-is-key" #15059

Open
opened 2026-01-31 04:27:15 +00:00 by claunia · 0 comments
Owner

Originally created by @elsaco on GitHub (Sep 2, 2021).

Windows Terminal version (or Windows build number)

10.0.22000.0 1.10.2383.0

Other Software

No response

Steps to reproduce

  1. In a WT type "alt+shift+?" for "what-is-key" prompt
  2. Type "ctrl+v" to check key bindings

Expected Behavior

Display what "ctrl+v" does, i.e. "SelfInsert - Insert the key typed"

Actual Behavior

  • If the clipboard is empty, after pressing "alt+shift+?" followed by "ctrl+v" there is no response.
  • Pressing another key the string "SelfInsert - Insert the key typed" is added to the output. Not expected.

Sample session:

  1. PS C:\Users\Tux> set-clipboard
  2. PS C:\Users\Tux> get-clipboard
  3. PS C:\Users\Tux>
  4. z: SelfInsert - Insert the key typed
  5. PS C:\Users\Tux> set-clipboard Test
  6. PS C:\Users\Tux> get-clipboard
  7. Test
  8. PS C:\Users\Tux>
  9. T: SelfInsert - Insert the key typed
  10. PS C:\Users\Tux> est

On line 3 key Z was pressed after no response from "ctrl+v" combination.
On line 9 the first character of the content in the clipboard T ("Test" was set on line 5) is followed by the SelfInsert string, and the PS prompt shows the remaining clipboard content ("est" on line 10).
This was tested with a small clipboard content. It gets messy pretty fast with large clipboard contents.

This bug was inspired by issue #11106

Originally created by @elsaco on GitHub (Sep 2, 2021). ### Windows Terminal version (or Windows build number) 10.0.22000.0 1.10.2383.0 ### Other Software _No response_ ### Steps to reproduce 1. In a WT type "alt+shift+?" for "what-is-key" prompt 2. Type "ctrl+v" to check key bindings ### Expected Behavior Display what "ctrl+v" does, i.e. "SelfInsert - Insert the key typed" ### Actual Behavior - If the clipboard is empty, after pressing "alt+shift+?" followed by "ctrl+v" there is no response. - Pressing another key the string "SelfInsert - Insert the key typed" is added to the output. Not expected. Sample session: 1. PS C:\Users\Tux> set-clipboard 2. PS C:\Users\Tux> get-clipboard 3. PS C:\Users\Tux> 4. z: SelfInsert - Insert the key typed 5. PS C:\Users\Tux> set-clipboard Test 6. PS C:\Users\Tux> get-clipboard 7. Test 8. PS C:\Users\Tux> 9. T: SelfInsert - Insert the key typed 10. PS C:\Users\Tux> est On line 3 key Z was pressed after no response from "ctrl+v" combination. On line 9 the first character of the content in the clipboard T ("Test" was set on line 5) is followed by the SelfInsert string, and the PS prompt shows the remaining clipboard content ("est" on line 10). This was tested with a small clipboard content. It gets messy pretty fast with large clipboard contents. This bug was inspired by issue #11106
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 04:27:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15059