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

Portuguese (Brazil) Keyboard Layout: IntlRo appears as 'unknown' key on Keyboard Shortcuts #24147

Closed
allanesquina opened this issue Apr 6, 2017 · 12 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug keybindings VS Code keybinding issues keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux
Milestone

Comments

@allanesquina
Copy link

allanesquina commented Apr 6, 2017

I'm not able to toggle line comments in js files, also, it's not possible to bind the shortcut again, I'm getting unknown when pressing key / in keybinding mode.

#24047 @alexandrudima

{
    key: '/',
    keyCode: 47,
    charCode: 47,
    code: 'IntlRo'
}

Steps to Reproduce:

  1. Open Keyboard Shortcuts
  2. Add a keybinding
  3. Press the key

screenshot from 2017-04-06 18-57-18

@alexdima alexdima added the linux Issues with VS Code on Linux label Apr 7, 2017
@alexdima
Copy link
Member

alexdima commented Apr 7, 2017

@allanesquina Is it possible this is a duplicate of #24107

i.e. https://bugs.chromium.org/p/chromium/issues/detail?id=709242 -- the scan codes we are receiving appear to sometimes be incorrect

To go back to keyCode based dispatching, please use the following setting "keyboard.dispatch": "keyCode". Restart VS Code.

I will try to reproduce this on a Linux machine as soon as I'm back in the office and will ping for more information if I cannot reproduce.

@alexdima alexdima added the keyboard-layout Keyboard layout issues label Apr 7, 2017
@allanesquina
Copy link
Author

@alexandrudima Seems to be a related issue but more keys are failing in this case.

Backing to keyCode the problem was solved for me, maybe keeping this config as default could help the users with the same problem at least for while.

I'm glad to help you with more information if you need.
Thanks for the quick reply 👍

@melloc01
Copy link

melloc01 commented Apr 7, 2017

This bug was introduced by this last update.

changing the setting to keyCode solves it.

@phouverneyuff
Copy link

Same here with Fedora 25. Changing to keyCode solves too

@alexdima
Copy link
Member

Lots of folks where scan codes are incorrect reported using some form of remote desktoping software.

Are you using a linux installation on real hardware and typing on a keyboard attached to it or are you using some form of remote desktoping ?

@alexdima alexdima added the keybindings VS Code keybinding issues label Apr 10, 2017
@melloc01
Copy link

melloc01 commented Apr 10, 2017

@alexandrudima real Linux, with real keyboard and real mouse, very physical 😬

More details on linux:
image

@phouverneyuff
Copy link

@alexandrudima I'm using all real, all physical

@alexdima alexdima changed the title 'unknown' key on Keyboard Shortcuts IntlRo appears as 'unknown' key on Keyboard Shortcuts Apr 10, 2017
@alexdima alexdima changed the title IntlRo appears as 'unknown' key on Keyboard Shortcuts Portuguese (Brazil) Keyboard Layout: IntlRo appears as 'unknown' key on Keyboard Shortcuts Apr 10, 2017
@allanesquina
Copy link
Author

@alexandrudima real Linux, all physical as well.

@MarcosEllys
Copy link

Hi,

I'm facing the same problem when commenting a code, the Ctrl + / shortcut does not work.

My keyboard is Brazilian standard ABNT2

@estevanmaito
Copy link

Same as @allanesquina here.

@andreasadelino
Copy link

andreasadelino commented Apr 27, 2017

Thanks to @allanesquina and @alexandrudima for the help. Change "keyboard.dispatch" to "keyCode" resolved my problem.

@alexdima
Copy link
Member

Since this is very hard for us to verify in our team, as it appears one needs to buy a Brazilian keyboard to get 104 keys (https://w3c.github.io/uievents-code/#keyboard-104 ) we would very much appreciate if you could try to verify that the bug is fixed in the Insiders Channel -- https://code.visualstudio.com/insiders.

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug keybindings VS Code keybinding issues keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests

7 participants