microsoft / vscode

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

Menu opens if releasing Alt first after Alt+Up/Down #175284

Open lukehutch opened 1 year ago

lukehutch commented 1 year ago

Type: Bug

When moving lines up/down using Alt+Up/Down, if you release the Alt key before the arrow key, then the VSCode menu (from the menu bar at the top) opens, which disrupts the input focus. It's super annoying, because then you have to hit Esc a couple of times to go back to editing again.

Platform: Linux

VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:35:30.018Z) OS version: Linux x64 6.1.11-100.fc36.x86_64 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 3950X 16-Core Processor (32 x 4241)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|0, 1, 1| |Memory (System)|125.74GB (109.87GB free)| |Process Argv|. --crash-reporter-id 11879ce0-438e-429c-8d0c-4da9fd848f93| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|xfce| |XDG_CURRENT_DESKTOP|XFCE| |XDG_SESSION_DESKTOP|xfce| |XDG_SESSION_TYPE|x11|
Extensions (20) Extension|Author (truncated)|Version ---|---|--- android-support|Ant|0.6.0 vscode-browser-preview|auc|0.7.2 dart-code|Dar|3.58.0 flutter|Dar|3.58.0 kotlin|fwc|0.2.26 rp-consumer|Gag|0.2.1 dart-data-class-generator|hzg|0.5.4 Kotlin|mat|1.7.1 vscode-docker|ms-|1.23.3 remote-containers|ms-|0.275.1 java|red|1.15.0 flutter-riverpod-snippets|rob|1.2.1 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-gradle|vsc|3.12.6 vscode-java-debug|vsc|0.48.0 vscode-java-dependency|vsc|0.21.1 vscode-java-pack|vsc|0.25.7 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.40.4
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30669237 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1cf:30587006 282f8724:30602487 pyind779cf:30662993 89544117:30613380 pythonsymbol12cf:30657549 a9j8j154:30646983 vsccsb:30662443 ```
deepak1556 commented 10 months ago

Does this repro with latest stable ? If it repros, can you share your application settings.

lukehutch commented 10 months ago

@deepak1556 Yes, this repros with latest stable (code-1.84.2-1699528436.el7.x86_64):

https://github.com/microsoft/vscode/assets/811305/b629a019-e2a4-4cc4-8f6e-85e797259a31

In this recording, with the cursor on the first line, I hold down Left Alt and tap the Down arrow a few times then the Up arrow a few times, then release Alt. Line a moves as expected. Then I hold down Alt again, followed by holding down the Down arrow until a has moved down a few lines. Then I release Down while still holding down Alt (so that Alt was never released). The menu opens, and the selected menu item cycles rapidly downwards.

Here's my settings.json:

{
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false,
    },
    "workbench.tree.indent": 20,
    "dart.debugExternalPackageLibraries": true,
    "dart.debugSdkLibraries": false,
    "dart.completionBudgetMilliseconds": 500,
    "explorer.confirmDragAndDrop": false,
    "timeline.pageSize": 999,
    "dart.warnWhenEditingFilesOutsideWorkspace": false,
    "cmake.configureOnOpen": true,
    "redhat.telemetry.enabled": false,
    "git.openRepositoryInParentFolders": "always",
    "java.configuration.updateBuildConfiguration": "automatic",
    "editor.codeActionsOnSave": {
        "source.fixAll": true,
        "source.organizeImports": true
    },
    "workbench.colorCustomizations": {
        "tab.activeBorder": "#ffff00",
        "tab.unfocusedActiveBorder": "#000000"
    },
    "android.sdkLocation": "/home/luke/Android/Sdk/platforms/android-33",
    "java.import.gradle.java.home": "/usr/java/jdk-11",
    "editor.mouseWheelScrollSensitivity": 3,
    "cmake.showOptionsMovedNotification": false,
    "java.configuration.runtimes": [
        {
            "name": "JavaSE-1.8",
            "path": "/usr/java/jdk1.8.0-x64"
        },
        {
            "name": "JavaSE-11",
            "path": "/usr/java/jdk-11",
            "default": true
        },
    ]
}
lukehutch commented 10 months ago

This may also be relevant -- the desktop is xfce 4.18 (the latest version in Fedora), and the window manager is xfwm4.

vscodenpa commented 7 months ago

Hey @deepak1556, this issue might need further attention.

@lukehutch, you can help us out by closing this issue if the problem no longer exists, or adding more information.

lukehutch commented 7 months ago

This is still a problem.

lukehutch commented 6 months ago

Hi @deepak1556, can you please remove the info-needed tag from this, and triage this? It is still a (very annoying) problem with VS Code. Thank you!

vscodenpa commented 4 months ago

Hey @deepak1556, this issue might need further attention.

@lukehutch, you can help us out by closing this issue if the problem no longer exists, or adding more information.

lukehutch commented 4 months ago

Still an issue