Repository: vscode
Issue: commit message textbox loses focus when scrolled out of view
Labels: bug,scm,papercut :drop_of_blood:

Issue Type: <b>Bug</b>

_How to reproduce:_

Have a list of uncommited changes which is longer than the screen height.
Click in the commit comment textbox and start typing.
Use the mouse-scroll-wheel to scroll down.
As long as the textbox is in view, you can continue typing.
Once the textbox is out of view, your typed characters don't seem to end up anywhere and it stays like that if you scroll back up.
You need to click inside the textbox to put focus back on it.

It's annoying if I'm writing a commit comment and have to scroll down to see what's included but want to continue typing.

Maybe it would be even better if the textbox is fixed and doesn't scroll. I don't know how this would impact low-res displays however.

VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:55.248Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|31.73GB (11.38GB free)|
|Process Argv|--crash-reporter-id bd925109-2561-46c5-8ae3-8d06aff982d2|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.60.1-microsoft-standard-WSL2|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|Memory (System)|24.84GB (17.19GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.60.1-microsoft-standard-WSL2|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|Memory (System)|24.84GB (17.19GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.60.1-microsoft-standard-WSL2|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|Memory (System)|24.84GB (17.19GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.60.1-microsoft-standard-WSL2|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|Memory (System)|24.84GB (17.19GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.60.1-microsoft-standard-WSL2|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|Memory (System)|24.84GB (17.19GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.10.60.1-microsoft-standard-WSL2|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|Memory (System)|24.84GB (17.19GB free)|
|VM|0%|
</details><details><summary>Extensions (39)</summary>

Extension|Author (truncated)|Version
---|---|---
cloudformation-yaml-snippets|dst|3.52.0
terraform|has|2.21.0
jupyter-keymap|ms-|1.0.0
remote-containers|ms-|0.224.3
remote-wsl|ms-|0.64.2
material-icon-theme|PKi|4.14.1
tcl|ras|0.1.0
chordpro|ric|0.2.0
vba-snippets|spe|1.0.1
HCL|who|0.0.5
vscode-ruby|win|0.28.0
iRule|yig|1.2.0
vscode-base64|ada|0.1.0
cform|aws|0.0.24
tcl|bit|0.4.0
hiera-eyaml|bra|1.0.1
format-json|Cle|1.0.2
codestream|Cod|12.12.0
vscode-markdownlint|Dav|0.46.0
xml|Dot|2.5.1
gitlens|eam|12.0.5
vscode-f5|F5D|3.7.0
vscode-cfn-lint|kdd|0.21.0
python|ms-|2022.2.1924087327
jupyter|ms-|2022.2.1030672458
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.6
fix-json|oli|0.1.2
java|red|1.4.0
vscode-yaml|red|1.5.1
sonarlint-vscode|Son|3.3.3
ansible|tom|1.2.0
pdf|tom|1.2.0
vscodeintellicode|Vis|1.2.17
vscode-java-debug|vsc|0.38.0
vscode-java-dependency|vsc|0.19.0
vscode-java-pack|vsc|0.22.1
vscode-java-test|vsc|0.34.2
vscode-maven|vsc|0.35.1


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
dsvsc009:30452663
pythonvsnew555:30457759
vscscmwlcmt:30438805
dockersurvey3cf:30453610
vscaat:30438848
pynewfile477:30450038

```

</details>

<!-- generated by issue reporter -->