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

[Ctrl] + [K], ["] and [Ctrl] + [K], ['] not working on Windows. #24

Open
raaaaaymond opened this issue Dec 20, 2019 · 6 comments
Open

Comments

@raaaaaymond
Copy link

Windows 10, VSCode 1.41.

Just wanted to bring to your attention that these shortcuts don't work on Windows. Last time I checked, they work on Mac (replacing [Ctrl] with [Cmd] of course). This is not a huge inconvenience right now because there is [Ctrl] + [K], [;], but I thought you might want to fix it anyway.

After checking the keyboard shortcuts settings by recording [Ctrl] + [K], ['], it shows up as "ctrl+k oem_3" in VSCode, and apparently it's bound to the command extension.selectBackTick, which seems incorrect anyway, because ['] is single-quote, not back tick. Upon recording [Ctrl] + [K], [`] and {Ctrl] + [K], ["], no corresponding commands were found.

@pfmoore
Copy link

pfmoore commented Jun 4, 2020

See this comment. Should this extension be using scan codes as described, to get layout-independent behaviour?

@dbankier
Copy link
Owner

dbankier commented Sep 2, 2020 via email

@pfmoore
Copy link

pfmoore commented Sep 2, 2020

Are you using a US keyboard layout? The point of the linked issue is that key bindings aren't layout independent. The problem arises with a UK keyboard layout.

A quote from later in that issue:

This is quite a mess, so we encourage the following:

  1. extensions should never ship keybindings :)
  2. that people use the UI for editing keybindings and don't go digging too deep because this is really ugly and we try hard to protect you from this crap :).

I can't say I like the advice that extensions shouldn't ship keybindings, but equally I can't see a way to ship bindings that is keyboard layout independent 🙁

At a minimum, I'd suggest that the documentation for this extension make it very clear that users on non-US Windows keyboards will need to remove the supplied key bindings and define their own.

@raaaaaymond
Copy link
Author

@pfmoore Ah yes I'm using a UK keyboard.

@dbankier
Copy link
Owner

dbankier commented Sep 2, 2020 via email

@raaaaaymond
Copy link
Author

@dbankier I haven't tried recently (I'm using something else at the moment) but as far as I remember, I couldn't even rebind it, because as I mentioned in my original post, because the extension (or something in the software) seems to recognise my single quote as backtick. I'll try again when I have time.

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

No branches or pull requests

3 participants