Skip to content

Keyboard commands with the Alt key focus the window menu #156041

Closed as not planned

Description

@ygoe

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.69.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. Press the Alt+Up or Alt+Down command to move a line up or down

Now, sometimes, preferrably with longer moved lines, the editor loses focus and the window menu is activated as if I had pressed the Alt key alone. Tried in .js files.

PS: Be quick. If you press Alt, then wait and press Up/Down, then wait and then release Alt, it works. But if you're working as quick as your fingers allow, it can happen.

Activity

  1. ygoe commented on Jul 23, 2022

    @ygoe
    Author

    Also happens with Alt+Backspace for the undo command. You may need this keybinding:

    { "key": "alt+backspace", "command": "undo" },
  2. added
    windows
    on Jul 25, 2022
  3. sbatten commented on Jul 25, 2022

    @sbatten
    Member

    Yves Goergen (@ygoe) are you using the custom or native title bar? window.titleBarStyle

  4. added
    info-needed
    on Jul 25, 2022
  5. ygoe commented on Jul 25, 2022

    @ygoe
    Author

    It's the native title bar.

  6. ygoe commented on Sep 30, 2022

    @ygoe
    Author

    This also makes quick usage of multi-cursor editing very frustrating. I select multiple characters in a line with Shift+ArrowLeft/Right, then keep the Alt key while pressing ArrowUp/Down. If you complete the second sequence fast enough, the editor will lose focus! Pressing further characters blindly might even invoke a random menu command, so this issue is even very dangerous! Looks like it needs a higher priority assigned.

    All in all, VSCode fails most of the time when using the Alt key and typing quickly. VSCode is still good for very slow programmers, but not for me (and everybody who wants to get their job done quickly).

    BTW, this issue has the info-needed label. I guess this needs some updating. If you need more information from me, please tell me which.

  7. vscodenpa commented on Dec 20, 2022

    @vscodenpa

    Hey Robo (@deepak1556), this issue might need further attention.

    Yves Goergen (@ygoe), you can help us out by closing this issue if the problem no longer exists, or adding more information.

  8. ygoe commented on Dec 20, 2022

    @ygoe
    Author

    The issue still exists and keeps annoying me on a daily basis!

  9. haifron commented on Jan 14, 2023

    @haifron

    Yves Goergen (@ygoe) you may be helped by changing this setting window.customMenuBarAltFocus to "window.customMenuBarAltFocus": false. It removes the ability to focus the Menu Bar by just pressing Alt, but you can still focus it by pressing Alt + F then Escape (or if you've rebound Alt + F try Alt + one of E S V G R T H for the other menus) if you still want to have that ability.

  10. ygoe commented on Jan 14, 2023

    @ygoe
    Author

    Alex (@haifron) That setting has absolutely no effect here, not even after restarting VSCode.

  11. deepak1556 commented on Jan 25, 2023

    @deepak1556
    Collaborator

    Alt focus of the native menu is controlled by runtime and it is not something we can override. For your use case, please switch to custom titlebar window.titleBarStyle: "custom" along with window.customMenuBarAltFocus: false. Closing as not actionable.

  12. ygoe commented on Jan 25, 2023

    @ygoe
    Author

    Robo (@deepak1556) Can you please let me know where that runtime has its issue tracker so I can ask for the fix there? If every other application can do this flawlessly, then your runtime should also be able to achieve that.

  13. locked and limited conversation to collaborators on Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-neededwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions