You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keyboard commands with the Alt key focus the window menu #156041
Does this issue occur when all extensions are disabled?: Yes/No
VS Code Version: 1.69.2
OS Version: Windows 10
Steps to Reproduce:
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.
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.
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 ESVGRTH for the other menus) if you still want to have that ability.
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.
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.
Activity
ygoe commentedon Jul 23, 2022
Also happens with Alt+Backspace for the undo command. You may need this keybinding:
{ "key": "alt+backspace", "command": "undo" },sbatten commentedon Jul 25, 2022
Yves Goergen (@ygoe) are you using the custom or native title bar?
window.titleBarStyleygoe commentedon Jul 25, 2022
It's the native title bar.
ygoe commentedon Sep 30, 2022
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.
vscodenpa commentedon Dec 20, 2022
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.
ygoe commentedon Dec 20, 2022
The issue still exists and keeps annoying me on a daily basis!
haifron commentedon Jan 14, 2023
Yves Goergen (@ygoe) you may be helped by changing this setting
window.customMenuBarAltFocusto"window.customMenuBarAltFocus": false. It removes the ability to focus the Menu Bar by just pressingAlt, but you can still focus it by pressingAlt + FthenEscape(or if you've reboundAlt + FtryAlt +one ofESVGRTHfor the other menus) if you still want to have that ability.ygoe commentedon Jan 14, 2023
Alex (@haifron) That setting has absolutely no effect here, not even after restarting VSCode.
deepak1556 commentedon Jan 25, 2023
Altfocus of the native menu is controlled by runtime and it is not something we can override. For your use case, please switch to custom titlebarwindow.titleBarStyle: "custom"along withwindow.customMenuBarAltFocus: false. Closing as not actionable.ygoe commentedon Jan 25, 2023
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.
deepak1556 commentedon Jan 26, 2023
Issue tracker is at https://github.com/electron/electron/issues