microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.69k stars 28.69k forks source link

Jump from a sidenav where the 1st focused element is an text input field to "Explorer" not working with default shortcut (ctrl+shift+e) #161310

Closed ChillyVanilly77 closed 1 year ago

ChillyVanilly77 commented 2 years ago

Type: Bug

When pressing the key-combo ctrl+shift+x and focusing the text input field of the "Extensions" sidenav, the default key-combo to jump back to the "Explorer" sidenav ctrl+shift+e does not work, instead it behaves weirdly by inputting some chars and then deleting it again (when pressed repeatedly). This seems to also apply to the sidenavs where the 1st focused element is a text input field, such as "Search" (default key-combo ctrl+shift+f).

Jumping from "Extensions" to the "Source Control" sidenav or any other that doesn't focus a text input element at first however with the default key-combo works perfectly well.

OS: Ubuntu 22.04 LTS (jammy) vscode branch: stable

VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:12:14.256Z) OS version: Linux x64 5.15.0-47-generic snap Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|0, 0, 0| |Memory (System)|31.29GB (27.74GB free)| |Process Argv|--no-sandbox . --crash-reporter-id 52c654c3-5787-46a0-9768-ae9c82c4fae0| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (51) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|14.2.0 vscode-eslint|dba|2.2.6 xml|Dot|2.5.1 EditorConfig|Edi|0.16.4 kotlin|fwc|0.2.26 go|gol|0.35.2 vscode-peacock|joh|4.2.1 chat|kar|0.35.0 vscode-cudacpp|kri|0.1.1 vscode-language-babel|mgm|0.0.36 goto-next-previous-member|mis|0.0.6 vscode-kubernetes-tools|ms-|1.3.10 python|ms-|2022.14.0 vscode-pylance|ms-|2022.9.20 jupyter|ms-|2022.8.1002431955 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 remote-containers|ms-|0.251.0 remote-ssh|ms-|0.84.0 remote-ssh-edit|ms-|0.80.0 remote-wsl|ms-|0.66.3 vscode-remote-extensionpack|ms-|0.21.0 cpptools|ms-|1.12.4 hexeditor|ms-|1.9.8 vsliveshare|ms-|1.0.5723 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 gradle-language|nac|0.2.3 vscode-boot-dev-pack|Piv|0.1.0 vscode-concourse|Piv|1.39.0 vscode-manifest-yaml|Piv|1.39.0 vscode-spring-boot|Piv|1.39.0 material-icon-theme|PKi|4.20.0 webgl-glsl-editor|rac|1.3.3 java|red|1.10.0 vscode-commons|red|0.0.6 vscode-xml|red|0.21.0 vscode-yaml|red|1.10.1 rust-analyzer|rus|0.3.1212 even-better-toml|tam|0.18.1 pdf|tom|1.2.0 vscodeintellicode|Vis|1.2.27 vscode-gradle|vsc|3.12.4 vscode-java-debug|vsc|0.44.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.1 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.38.0 vscode-spring-boot-dashboard|vsc|0.7.0 vscode-spring-initializr|vsc|0.11.0 vscode-icons|vsc|11.17.0
TylerLeonhardt commented 1 year ago

I wasn't able to repro this on macOS... cmd+shift+x, cmd+shift+e, cmd+shift+x, cmd+shift+e worked fine.

/gifPlease

VSCodeTriageBot commented 1 year ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).

Happy coding!

TylerLeonhardt commented 1 year ago

I’m suspicious of an extension causing this behavior. Can you open the Command Palette (/Ctrl+Shift+P) and run the extension bisect command: Help: Start Extension Bisect and follow the prompts? (More information about Extension Bisect here)

ChillyVanilly77 commented 1 year ago

Uuhm...I have explicitly written OS: Ubuntu 22.04 LTS (jammy) I never had nor will I ever have a Mac most probably, hence the reproduction there will not necessarily hold true as I have not encountered an issue there...

But sure, I can provide a GIF for that on Ubuntu 22.04 LTS.

ChillyVanilly77 commented 1 year ago

Here as promised the GIF that demonstrates the repeatedly attempted switch from the "Extensions" sidenav menu while text input was focused to the "Explorer" sidenav menu. It reports in the screencast mode "ctrl+shift+unknown" instead of the expected "ctrl+shift+e".

vscode-focuse-explorer-sidenav-from-text-input-element-sidenav-menu

alexdima commented 1 year ago

Duplicate of https://github.com/microsoft/vscode/issues/117966