-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Visual Studio Code: '/' being considered as CtrlRight, so toggle line comment can't be used, doesn't work #114275
Comments
I had a similar issue, but I believe my report is more detailed. |
Interesting report, your workaround didn't actually helped me, since both of my layouts where pt-br i'm actually using an usb keyboard so i can use the ctrl + / , since this keyboard has a right control he doesn't confuse with the thinkpad actual key being pressed. What leaves me more intrigged is that he knows that i'm typing '/' so why the hell it would interpret it as CtrlRight bullocks ... |
I will try
Em qua., 13 de out. de 2021 às 14:55, Alexandru Dima <
***@***.***> escreveu:
… @afa7789 <https://github.com/afa7789> Today's insiders contains a fix for
#24166 <#24166> . That would
make it that we will read the correct active layout when VS Code is
launched. Can you please try it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNEMF55DUWED2G56FT4EYTUGXBXRANCNFSM4WAZQHRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Alex, i was budy all this days,
how exactly does i get the correct branch/tag to test the insiders ?
Em qua., 13 de out. de 2021 às 14:56, Arthur ***@***.***> escreveu:
… I will try
Em qua., 13 de out. de 2021 às 14:55, Alexandru Dima <
***@***.***> escreveu:
> @afa7789 <https://github.com/afa7789> Today's insiders contains a fix
> for #24166 <#24166> . That
> would make it that we will read the correct active layout when VS Code is
> launched. Can you please try it?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#114275 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AGNEMF55DUWED2G56FT4EYTUGXBXRANCNFSM4WAZQHRA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
@afa7789 Thank you for your time. You can download a zip version of the Insiders build from https://code.visualstudio.com/insiders/ (or you can install it side-by-side with the stable regular build) |
Thanks Alex,
First of all, insiders release is really great, there is a bunch of UI
improvements liked it a lot.
But it didn't fix my problem, i don't know why, but he types '/' but when
it comes to the key recognition as shortcuts it still is considered as ctrl.
Em seg., 18 de out. de 2021 às 06:18, Alexandru Dima <
***@***.***> escreveu:
… @afa7789 <https://github.com/afa7789> Thank you for your time. You can
download a zip version of the Insiders build from
https://code.visualstudio.com/insiders/ (or you can install it
side-by-side with the stable regular build)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNEMF7DC6JFLWRWU4BWEYDUHPQ5ZANCNFSM4WAZQHRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@afa7789 On your Portuguese/Brazil keyboard you have a very special key, First of all, let me double check: Have you installed Linux natively (bare-metal) or are you using some form of virtualization / remote desktop ? If you are sitting physically and Linux is installed directly on the machine, could you please try the following:
It would look something like this: You can also try opening https://w3c.github.io/uievents/tools/key-event-viewer.html in Chromium and Firefox and we can look together if the events look good or something is broken in Chromium. |
Just did it, didn't knew about electron figma, really interesting. I've
sent you an email with the screenshots.
[image: first_screenshot.png]
First Screen shoot, made with external keyboard that is able to coment the
code.
-------
[image: second_screenshot.png]
second screenshot , with thinkpad native keyboard.
…-----------------------
This is my Input source:
[image: image.png]
-----------------------
[image: image.png]
one last printscreen just to make sure.
Em ter., 19 de out. de 2021 às 07:21, Alexandru Dima <
***@***.***> escreveu:
@afa7789 <https://github.com/afa7789> On your Portuguese/Brazil keyboard
you have a very special key, /? that is known to cause headaches to all
software, because it is kind of unique to Portuguese/Brazil.
------------------------------
First of all, let me double check: Have you installed Linux natively
(bare-metal) or are you using some form of virtualization / remote desktop ?
------------------------------
If you are sitting physically and Linux is installed directly on the
machine, could you please try the following:
1. Download and open https://www.electronjs.org/fiddle for you platform
2. Load
https://gist.github.com/deepak1556/69b8930b819f82115df50d0f466dd1ba
via Load Fiddle button on the top right corner
3. Choose Electron version v13.5.1 from top left dropdown
4. Run the app
5. With the input box focused, press Ctrl+/
6. Take Screenshot
It would look something like this:
[image: image]
<https://user-images.githubusercontent.com/5047891/134949552-aa599bfb-f5f8-4f3e-94fe-cb814ab3ecf8.png>
------------------------------
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNEMFYN4OCSUELEBFBBV33UHVBEBANCNFSM4WAZQHRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Attaching screenshots at #114275 : First Screen shoot, made with external keyboard that is able to coment the code: Second screenshot , with thinkpad native keyboard: This is my Input source: |
Thank you @afa7789 These screenshots nicely show the problem, looking at row
Here is my opinion on what could be going wrong:
Thank you again for your help, but this is not a problem with VS Code itself, it is a problem either in Chromium or it is a configuration error. As a workaround, you can switch VS Code to dispatch on |
i will change the dispacth, but when i use the keyboard previewer of
PopOs/Ubuntu it shows correctly ( you can see the image bellow, and the
keyboard image in the start of the issue.)
[image: print.png]
i'm answering this via email for you too with the image.
Em sex., 22 de out. de 2021 às 08:54, Alexandru Dima <
***@***.***> escreveu:
… Thank you @afa7789 <https://github.com/afa7789>
These screenshots nicely show the problem, looking at row #2 which is the
actual ctrl+/ keydown event:
- when you use the external keyboard, the code is correctly set to
IntlRo.
- when you use the native thinkpad keyboard, the code is incorrectly
set to ControlRight.
Here is my opinion on what could be going wrong:
- this might be a configuration error. Perhaps your configured
keyboard layout "Portuguese (Brazil, IBM/Lenovo ThinkPad)" is correct for
your external keyboard layout, but for your native thinkpad keyboard you
need to use a different keyboard layout. Are there variations of the one
you have selected now in Ubuntu?
- perhaps Chromium has a bug in its internal mapping for IntlRo here
<https://source.chromium.org/chromium/chromium/src/+/main:ui/events/keycodes/dom/dom_code_data.inc;l=308-312;drc=35bc8ada48cd36cd115d6146c48b25a0a6fbebdc>,
but IMHO that is pretty unlikely.
Thank you again for your help, but this is not a problem with VS Code
itself, it is a problem either in Chromium or it is a configuration error.
As a workaround, you can switch VS Code to dispatch on keyCode instead of
code, using the setting "keyboard.dispatch": "keyCode" in VS Code. (It
looks like the keyCode field in both screenshots is correct).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNEMF6SGCZTZOXUV7TVR43UIFGHNANCNFSM4WAZQHRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
changing the dispatch mode worked. thnks
Em sex., 22 de out. de 2021 às 10:01, Arthur ***@***.***> escreveu:
… i will change the dispacth, but when i use the keyboard previewer of
PopOs/Ubuntu it shows correctly ( you can see the image bellow, and the
keyboard image in the start of the issue.)
[image: print.png]
i'm answering this via email for you too with the image.
Em sex., 22 de out. de 2021 às 08:54, Alexandru Dima <
***@***.***> escreveu:
> Thank you @afa7789 <https://github.com/afa7789>
>
> These screenshots nicely show the problem, looking at row #2 which is
> the actual ctrl+/ keydown event:
>
> - when you use the external keyboard, the code is correctly set to
> IntlRo.
> - when you use the native thinkpad keyboard, the code is incorrectly
> set to ControlRight.
>
> Here is my opinion on what could be going wrong:
>
> - this might be a configuration error. Perhaps your configured
> keyboard layout "Portuguese (Brazil, IBM/Lenovo ThinkPad)" is correct for
> your external keyboard layout, but for your native thinkpad keyboard you
> need to use a different keyboard layout. Are there variations of the one
> you have selected now in Ubuntu?
> - perhaps Chromium has a bug in its internal mapping for IntlRo here
> <https://source.chromium.org/chromium/chromium/src/+/main:ui/events/keycodes/dom/dom_code_data.inc;l=308-312;drc=35bc8ada48cd36cd115d6146c48b25a0a6fbebdc>,
> but IMHO that is pretty unlikely.
>
> Thank you again for your help, but this is not a problem with VS Code
> itself, it is a problem either in Chromium or it is a configuration error.
> As a workaround, you can switch VS Code to dispatch on keyCode instead
> of code, using the setting "keyboard.dispatch": "keyCode" in VS Code.
> (It looks like the keyCode field in both screenshots is correct).
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#114275 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AGNEMF6SGCZTZOXUV7TVR43UIFGHNANCNFSM4WAZQHRA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
Adding image also to #114275 |
@afa7789 Thanks again for the information, I am happy that the workaround works for you. If you believe your configuration is correct, you can try to further pursue this issue with Chromium.
|
Will do, thanks!
…On Fri, Oct 22, 2021, 10:07 Alexandru Dima ***@***.***> wrote:
@afa7789 <https://github.com/afa7789> Thanks again for the information, I
am happy that the workaround works for you. If you believe your
configuration is correct, you can try to further pursue this issue with
Chromium.
- you can download a recent Chrome/Chromium build
- you can visit
https://w3c.github.io/uievents/tools/key-event-viewer.html
- you can press again the keybinding that is not working in
Chrome/Chromium and you can also press it in Firefox
- if Firefox sets the code correctly, then that would be great.
- Finally, use all of that information (that code is incorrect) and
create an issue at https://bugs.chromium.org/p/chromium/issues/list
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNEMF5EYOVTHASVZ3NH2YTUIFOX5ANCNFSM4WAZQHRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
I'm on Pop_OS! 20 and am using Visual Studio Code 1.52.1.
Keyboard Layout : Portuguese, Brazil , IBM/Lenovo Thinkpad
And I'm using a t460. Keyboard Image.
I can't use the shortcut for commenting anymore ctrl +/ it simply stopped working.
While typing around on the VS Code i can type "/" and use ctrl correctly, most of shortcuts seem to be fine.
But when trying to assigning a new shortcut ,for the toggle line command, it doesn't accept my '/' key as '/' when typed it say it is "ctrl". So if i try to asign ctrl + / it will remain as "ctrl +" image with what i'm describing. If i only type "/" it say it's "ctrl" too, what i'm supposed to do ? can i change the mapping to this key on VS Code ? Image with visual layout showing key typed test.
It's not accepting my keyboard layout to define new shortcuts it seems at least not with this key. I'm using a Brazil, IBM/Lenovo Thinkpad layout. And the machine keyboard i'm on is a thinkpad too...
keyboard troubleshot: (type 'ctrl' release key , type '/' released key, type 'ctrl' then type '/' then released '/' then released 'ctrl'.)
Just realized it's considering my forward backslash or forward slash as ControlRight, but the layout used is the correct one.
The text was updated successfully, but these errors were encountered: