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
Alt+Click on a toolbar button causes the Menu Bar to toggle on KeyUp #44396
Alt+Click on one of the editor/title toolbar buttons (for example in GitLens if you Alt+Click on the Blame button it will show the recent changes rather than the blame)
🐛 Observe that when you let go of the alt key the menu bar will toggle back on
FYI, I have a PR ready to submit for this
VS Code version: Code - Insiders 1.21.0-insider (9031699, 2018-02-26T05:18:08.801Z)
OS version: Windows_NT x64 10.0.17107
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)
Memory (System)
31.93GB (17.59GB free)
Process Argv
C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe C:\Users\Eric\code\microsoft\vscode
Eric Amodio (@eamodio) thanks for your PR, however let's first get the bug straigthend out.
Open explorer.
Hold alt key, trigger context menu -> notice there is "Delete Permanently"
Let go of the all key -> notice there is "Delete Permanently" still there. I just verified on windows.
Is this unexpected for you? Becuase it behaves just fine for me.
Or is the issue only visible for extensions?
Is step 1. really needed to repro? If yes how do you hide the Menu Bar
Isidor Nikolic (@isidorn)
I can repro my issue on Windows/Linux - but the Menu Bar must be hidden (View -> Toggle Menu Bar).
Hold down Alt and click on any of these icons (granted only the GitLens one actually has an alternate command)
When you let go of the Alt key it will cause the Menu Bar to be shown.
As for your issue, I can't even get a context menu to show up while holding down Alt -- well it shows for a second and disappears. And that doesn't matter if the menu bar is hidden or not.
Isidor Nikolic (@isidorn) the issue you mentioned, yes -- that is a duplicate of #44136, but the issue I mentioned is not. There is no issue with the alt key not working. It it just that if you hide the menu bar (on Windows/Linux) you can use the alt key alone to toggle it on and off. Which is perfectly fine and as-designed. But if you attempt to alt+click on an item in a "toolbar" (see the image in my previous post), the alt leaks through that click (the command works fine, mind you) so that not only does the command run, but the menu bar toggles (and it drives me NUTS 😄).
Activity
isidorn commentedon Feb 26, 2018
Eric Amodio (@eamodio) thanks for your PR, however let's first get the bug straigthend out.
Is this unexpected for you? Becuase it behaves just fine for me.
Or is the issue only visible for extensions?
Is step 1. really needed to repro? If yes how do you hide the Menu Bar
fyi Johannes Rieken (@jrieken)
eamodio commentedon Feb 26, 2018
Isidor Nikolic (@isidorn)
I can repro my issue on Windows/Linux - but the Menu Bar must be hidden (View -> Toggle Menu Bar).
Hold down

Altand click on any of these icons (granted only the GitLens one actually has an alternate command)When you let go of the
Altkey it will cause the Menu Bar to be shown.As for your issue, I can't even get a context menu to show up while holding down
Alt-- well it shows for a second and disappears. And that doesn't matter if the menu bar is hidden or not.isidorn commentedon Feb 27, 2018
This seems to be an issue with the alt key on windows and this feels like a duplicate of #44136
eamodio commentedon Feb 27, 2018
Isidor Nikolic (@isidorn) the issue you mentioned, yes -- that is a duplicate of #44136, but the issue I mentioned is not. There is no issue with the
altkey not working. It it just that if you hide the menu bar (on Windows/Linux) you can use thealtkey alone to toggle it on and off. Which is perfectly fine and as-designed. But if you attempt toalt+clickon an item in a "toolbar" (see the image in my previous post), thealtleaks through that click (the command works fine, mind you) so that not only does the command run, but the menu bar toggles (and it drives me NUTS 😄).There was similar work done to stop this from happening when
alt+clicking in the editor here:https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/codeEditor/electron-browser/menuPreventer.ts
isidorn commentedon Feb 28, 2018
Ok thanks for more info. Johannes Rieken (@jrieken) fyi
vscodebot commentedon Mar 7, 2018
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Fixes microsoft#44396 - cancel alt up after mouse down on menu
Merge pull request #44397 from eamodio/fixes-44396