Skip to content

Ctrl+v is pasting twice sometimes #284848

@Tyriar

Description

@Tyriar

About 20% of the time ctrl+v is double pasting for me. I needed to troubleshoot keybindings to confirm this was a VS Code problem and not a keyboard problem, see below that only a single Invoking command happens but paste happens twice:

2025-12-23 03:34:32.269 [info] [Window] [KeybindingService]: / Soft dispatching keyboard event
2025-12-23 03:34:32.270 [info] [Window] [KeybindingService]: | Resolving Enter
2025-12-23 03:34:32.270 [info] [Window] [KeybindingService]: \ From 36 keybinding entries, no when clauses matched the context.
2025-12-23 03:34:32.270 [info] [Window] [KeybindingService]: / Received  keydown event - modifiers: [], code: NumpadEnter, keyCode: 13, key: Enter
2025-12-23 03:34:32.270 [info] [Window] [KeybindingService]: | Converted keydown event - modifiers: [], code: NumpadEnter, keyCode: 3 ('Enter')
2025-12-23 03:34:32.270 [info] [Window] [KeybindingService]: | Resolving Enter
2025-12-23 03:34:32.270 [info] [Window] [KeybindingService]: \ From 36 keybinding entries, no when clauses matched the context.
2025-12-23 03:34:32.400 [info] [Window] [KeybindingService]: / Soft dispatching keyboard event
2025-12-23 03:34:32.400 [info] [Window] [KeybindingService]: \ Keyboard event cannot be dispatched
2025-12-23 03:34:32.400 [info] [Window] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2025-12-23 03:34:32.400 [info] [Window] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2025-12-23 03:34:32.401 [info] [Window] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: / Soft dispatching keyboard event
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: | Resolving ctrl+V
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: \ From 5 keybinding entries, matched editor.action.clipboardPasteAction, when: no when condition, source: built-in.
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: KeyV, keyCode: 86, key: v
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: KeyV, keyCode: 52 ('V')
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: | Resolving ctrl+V
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: \ From 5 keybinding entries, matched editor.action.clipboardPasteAction, when: no when condition, source: built-in.
2025-12-23 03:34:32.458 [info] [Window] [KeybindingService]: + Invoking command editor.action.clipboardPasteAction.
2025-12-23 03:34:32.583 [info] [Window] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.

Image

This only started happening recently, I see fd7fb44 touched how paste worked 1-2 weeks ago.

Metadata

Metadata

Assignees

Labels

importantIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions