Repository: vscode
Issue: Keyboard Shortcuts User Interface: Keybinding Can Be Overriden By An Invisible Object From keybindings.json
Labels: bug,keybindings-editor

Type: <b>Bug</b>

1. Install Visual Studio Code from https://code.visualstudio.com/.
2. Accept the defaults.
3. Disable all installed extensions with the Disable All Installed Extensions command in the Command Palette.
4. Press Escape to dismiss the floating dialog.
5. Go to the View menu and select Terminal.
6. Copy a word from a web page (e.g. "Steps").
7. Click in the Terminal ("pwsh").
8. Press CTRL+V.

The word "Steps" will appear.

Remove CTRL+V from the list of system shortcuts (perhaps this is performed by a misbehaving extension, confusing documentation, or a gremlin):
1. "Open Keyboard Shortcuts" from the Command Palette.
2. Search for "workbench.action.terminal.sendSequence".
3. Locate the row that has a keybinding of "CTRL + V".
4. Right-click on the row.
5. Select "Remove Keybinding".

Attempt to restore the keybinding by adding it to the user's shortcuts:
1. Pretend that weeks have passed.
2. Open "Open Keyboard Shortcuts (JSON)" from the Command Palette.
3. Pretend that someone on the Internet (or perhaps the PowerShell extension module once upon a time) said to add the following to the top of the JSON file:
    {
        "key": "ctrl+v",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus && !accessibilityModeEnabled && terminalShellType == 'pwsh'"
    }
4. Paste that text right under the "[" and add a "," at the end after "}".
5. Save.
6. Copy a word from a web page (e.g. "Steps").
7. Click in the Terminal ("pwsh").
8. Press CTRL+V.

The word will fail appear.

Look through the VS Code user interface to troubleshoot the problem:
1. Pretend that weeks have passed.
1. Open "Open Keyboard Shortcuts" from the Command Palette.
2. Search for "workbench.action.terminal.sendSequence"
3. See that there is a row with a keybinding of "CTRL+V".

Expected Result:
The user should see that the CTRL+V row is ignored by the computer due to another conflicting keyboard shortcut entry.

Actual Result:
VS Code tells the user that CTRL+V is correctly mapped to the workbench.action.terminal.sendSequence command.

This issue was created at the recommendation of andschwa in https://github.com/PowerShell/vscode-powershell/issues/4211.

VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z)
OS version: Windows_NT x64 10.0.17763
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz (4 x 2400)|
|GPU Status|2d_canvas: unavailable_software<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: disabled_software<br>multiple_raster_threads: enabled_on<br>opengl: disabled_off<br>rasterization: disabled_software<br>raw_draw: disabled_off_ok<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: unavailable_software<br>webgl2: unavailable_software<br>webgpu: unavailable_software|
|Load (avg)|undefined|
|Memory (System)|16.00GB (13.38GB free)|
|Process Argv|--disable-extensions --crash-reporter-id d4fd37ed-5a29-4dc8-b355-3dc6939c8c64|
|Screen Reader|no|
|VM|0%|
</details>Extensions disabled<details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30784848
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
a9j8j154:30646983
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
showindicator:30785052
pythongtdpath:30769146
bgfeh915:30780428
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
h7j2d465:30786200

```

</details>

<!-- generated by issue reporter -->