Entering Markdown Preview doesn't retain Alt key state for editor buttons
#199,998 opened on Dec 5, 2023
Repository metrics
- Stars
- (74,848 stars)
- PR merge metrics
- (Avg merge 11h 43m) (1,000 merged PRs in 30d)
Description
Type: Bug
When you hold the Alt key, you can change the behavior of the editor buttons for preview button ("a") and editor split button ("b").
For a source editor with a markdown file:
- Normal state: a. Open Preview to the Side b. Split Editor Right
- Alt state: a. Open Preview b. Split Editor Down
For a markdown preview:
- Normal state: a. Show Source b. Split Editor Right
- Alt state: a. Show Source b. Split Editor Down
When you press and hold Alt and click button "a" repeatedly, you'd expect to toggle 2-4-2-4-... indefinitely. But you actually toggle 2-3-1-3-1-... The "Alt" state gets lost when you enter the Preview.
Interestingly, the switch from the preview to the source code editor keeps the Alt state, then on going back to the preview it gets lost again: 4-2-3-1-3-1-... etc.
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z) OS version: Windows_NT x64 10.0.19045 Modes: Restricted
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600) |
| GPU Status | 2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.93GB (7.99GB free) |
| Process Argv | --crash-reporter-id 6fb644fb-c7e9-4db8-90f4-16f041378e18 |
| Screen Reader | no |
| VM | 0% |
| Extension | Author (truncated) | Version |
|---|---|---|
| vscode-language-pack-de | MS- | 1.84.2023111509 |
| vscode-fileutils | sle | 3.10.3 |
| svelte-vscode | sve | 108.1.0 |