Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10 alt + key for menu bar not working when scroll lock is on #19011

Closed
OYangXiao opened this issue Jan 23, 2017 · 11 comments
Closed

win10 alt + key for menu bar not working when scroll lock is on #19011

OYangXiao opened this issue Jan 23, 2017 · 11 comments
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues electron Issues and items related to Electron info-needed Issue requires more information from poster upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@OYangXiao
Copy link

OYangXiao commented Jan 23, 2017

  • VSCode Version: 1.8.1
  • OS Version: win 10

Steps to Reproduce:

  1. open a vscode window

2. toggle scroll lock on
3. press alt then any other menu bar shortcut key to toggle a menu but failed

  1. press alt + (any menu bar shortcut key) the menu won't show

won't reproduce on fedora os because the scroll lock seems to be disabled ^_^

I don't think it is a big problem, I don't use scroll lock at all, I just think it's abnormal

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Jan 23, 2017
@bpasero bpasero self-assigned this Jan 23, 2017
@bpasero bpasero added this to the Backlog milestone Jan 23, 2017
@OYangXiao OYangXiao changed the title alt + key for menu bar not working when scroll lock is on win10 alt + key for menu bar not working when scroll lock is on Jan 24, 2017
@bpasero bpasero added workbench accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues and removed bug Issue identified by VS Code Team member as probable bug labels Apr 7, 2017
@bpasero bpasero added the menu label May 26, 2017
@monk-time
Copy link

Had the same bug on Win7/1.16.0 today. Very confusing because it's very easy to hit Scroll Lock by accident and not notice that it's enabled (my laptop doesn't even have an indicator light for it).

@bpasero
Copy link
Member

bpasero commented Nov 15, 2017

Still happening?

@bpasero bpasero added the info-needed Issue requires more information from poster label Nov 15, 2017
@monk-time
Copy link

@bpasero, yes, still happening on 1.18. It's trivially easy to reproduce, Scroll Lock always breaks Alt+F/E/etc.

@bpasero
Copy link
Member

bpasero commented Nov 15, 2017

@monk-time also with other apps or just VS Code?

@OYangXiao
Copy link
Author

@bpasero
at least not on windows 10 file explorer

@monk-time
Copy link

monk-time commented Nov 15, 2017

@bpasero Only VSCode. That's the first program ever in my experience to have its shortcuts affected by Scroll Lock, and I am sure it is caused by a non-native Electon menu not following a multitude of Windows menu conventions (there are many tickets here about this). I have just checked 10 or so well-established Windows programs that I have running, none of them are affected.

@Hectate
Copy link

Hectate commented Jul 26, 2018

Just wanted to speak up and say that I encountered this issue today. To make it worse, I was working on a Dell laptop that does not have a scroll lock indicator or dedicated button. With the numerous other menu-related issues (e.g. Electron electron/electron#2504) I went down a few rabbit holes before finding that scroll-lock would change this.

To any future people; it may be possible to switch Scroll-lock by pressing Fn+S (which I had done so inadvertently) if this is causing you issues.

@bpasero bpasero added the electron Issues and items related to Electron label Aug 6, 2018
@bpasero
Copy link
Member

bpasero commented Aug 17, 2018

@Hectate @binbinfrog @monk-time can you try to reproduce this with our new custom menu, just configure "window.titleBarStyle": "custom"

@monk-time
Copy link

@bpasero Scroll lock causes no issues for me on the latest release with the custom menu enabled. 👍

I've noticed though that there are a couple of new minor convention-breaking issues with it though:

  • after opening a menu (e.g. Alt+F) I can't close it and return focus to where it was before by tapping Alt (a nice Windows convention), only by hitting Esc twice (a bit more awkward).

    Examples of programs that close an expanded menubar and return focus on Alt: Windows Explorer (W7), Firefox, Adobe Reader, N++, foobar2000, qBittorrent.

  • you can't re-use menubar shortcuts (Alt+F, Alt+E etc.) for other actions, both actions fire at once and the focus stays on the menu. I know it's usually not recommended to shadow those shortcuts, but they are very handy, so it would be great if the user-defined shortcuts overrode the menu completely.

Tested on 1.26.0. I haven't checked to see if there are tickets already for these issues, sadly I don't have the time atm to open them myself.

@bpasero
Copy link
Member

bpasero commented Aug 17, 2018

We will change to custom menus on Windows. For now you can set "window.titleBarStyle": "custom".

Please report individual issues for things you see with the custom menu.

@bpasero bpasero closed this as completed Aug 17, 2018
@monk-time
Copy link

@bpasero Thanks, I've reported the first item (#56652) and found an existing issue for the second (#53654).

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues electron Issues and items related to Electron info-needed Issue requires more information from poster upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants