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

v1.5.10 broke ctrl+z with Dvorak keyboard layout #307

Closed
nyurik opened this issue Aug 15, 2023 · 5 comments
Closed

v1.5.10 broke ctrl+z with Dvorak keyboard layout #307

nyurik opened this issue Aug 15, 2023 · 5 comments
Assignees
Labels
Milestone

Comments

@nyurik
Copy link

nyurik commented Aug 15, 2023

This only happened in v1.5.10. Switching back to v1.5.9 fixes this issue.

To reproduce (on Linux), install this plugin in VSCode and configure your system to use Dvorak keyboard layout. In a typescript file in VSCode, make several different changes, and use "undo" shortcut -- Ctrl+/ multiple times (the / key is mapped to z in Dvorak).

Expected: multiple undos
Actual: current line gets commented and un-commented with the //, as if I was using QWERTY

Versions

Version: 1.81.1
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:18:39.991Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 5.15.0-79-generic

---

Name: IntelliJ IDEA Keybindings
Id: k--kato.intellij-idea-keybindings
Description: Port of IntelliJ IDEA Keybindings, including for WebStorm, PyCharm, PHP Storm, etc.
Version: 1.5.10
Publisher: Keisuke Kato
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings

Possibly related issues

@nyurik nyurik changed the title Ctrl+z on Dvorak keyboard with plugin is wrong Ctrl+z on Dvorak keyboard with plugin is broken Aug 15, 2023
@nyurik nyurik changed the title Ctrl+z on Dvorak keyboard with plugin is broken Broken ctrl+z with Dvorak keyboard Aug 15, 2023
@nyurik nyurik changed the title Broken ctrl+z with Dvorak keyboard Broken ctrl+z with Dvorak keyboard layout Aug 15, 2023
@nyurik
Copy link
Author

nyurik commented Aug 15, 2023

I am not sure this issue belongs to the vscode repo, but I think authors of microsoft/vscode#173456 half a year ago might have some insight into how an extension could disrupt their fix. CC: @hamzahamidi and @alexdima

@nyurik nyurik changed the title Broken ctrl+z with Dvorak keyboard layout v1.5.10 broke ctrl+z with Dvorak keyboard layout Aug 15, 2023
@kasecato kasecato self-assigned this Oct 8, 2023
@kasecato kasecato added the bug label Mar 31, 2024
@kasecato
Copy link
Owner

Looks like this should use a virtual key code

As-Is

            {
                "key": "ctrl+[Slash]",
                "mac": "cmd+[Slash]",
                "command": "editor.action.commentLine",
                "when": "editorTextFocus && !editorReadonly",
                "intellij": "Comment/uncomment with line comment"
            },

To-Be

            {
                "key": "ctrl+oem_2",
                "mac": "cmd+[Slash]",
                "command": "editor.action.commentLine",
                "when": "editorTextFocus && !editorReadonly",
                "intellij": "Comment/uncomment with line comment"
            },

@kasecato kasecato added this to the v1.6.1 milestone Mar 31, 2024
@nyurik
Copy link
Author

nyurik commented Mar 31, 2024

Thanks for looking into it! Does the "mac" section need to be updated too? (I don't use Mac, so no idea, but others might hit this bug there as well)

@kasecato
Copy link
Owner

That's true
It would be better to fire key codes according to the keyboard layout in all operating systems
Let me revert #305 since they should change the keyboard layout in thier OS

            {
                "key": "ctrl+/",
                "mac": "cmd+/",
                "command": "editor.action.commentLine",
                "when": "editorTextFocus && !editorReadonly",
                "intellij": "Comment/uncomment with line comment"
            },

@kasecato kasecato modified the milestones: v1.6.1, v1.7.0 Mar 31, 2024
kasecato added a commit that referenced this issue Apr 7, 2024
Fixed #307 that v1.5.10 broke ctrl+z with Dvorak keyboard layout
@kasecato
Copy link
Owner

kasecato commented Apr 7, 2024

just released v1.7.0 that supports for Dvorak layouts
If there're issues with the layout, this extension guides the user to use a hardware keyboard that matches the key layout of their OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants