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

Created on 7 Apr 2017  路  12Comments  路  Source: microsoft/vscode


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

  • VSCode Version: 1.11.1
  • OS Version: Ubuntu 16.04 LTS
  • No extensions
  • Keyboard layout: Portuguese (Brazil) https://en.wikipedia.org/wiki/File:KB_Portuguese_Brazil.svg
  • Unknown key:
{
    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

bug keybindings keyboard-layout linux

Most helpful comment

This bug was introduced by this last update.

changing the setting to keyCode solves it.

All 12 comments

@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.

@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 :+1:

This bug was introduced by this last update.

changing the setting to keyCode solves it.

Same here with Fedora 25. Changing to keyCode solves too

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 ?

@alexandrudima real Linux, with real keyboard and real mouse, very physical :grimacing:

More details on linux:
image

@alexandrudima I'm using all real, all physical

@alexandrudima real Linux, all physical as well.

Hi,

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

My keyboard is Brazilian standard ABNT2

Same as @allanesquina here.

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

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!

Was this page helpful?
0 / 5 - 0 ratings