Dispatch a chord keybinding again if it is not followed by a second part
See original GitHub issueDoes this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.63.2
- OS Version: MacOS Big Sur 11.6
Steps to Reproduce:
- Type the default Cmd+K shortcut to clear the terminal => VS Code successfully catches the key down event but says Cmd+K is not a shortcut
- In the keyboard shortcut settings, change the āSourceā to āUserā by changing the when condition to the same value than it already was set to.
- Type Cmd+K => terminal successfully cleared
- Click on āReset key bindingā => Doesnāt change anything except the āSourceā column (because the when condition never changed), but it breaks the keyboard binding.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
Read more >Ctrl-C keybinding is having no effect
It depends on where and when you evaluate this code. Well actually, the important thing - that the code that is evaluated after...
Read more >Keybinds - Rust Wiki
It is worth noting that a multi-key bind is not a separate bind from the keys that it uses. You cannot bind one...
Read more >Sacha Chua's Emacs configuration
(Although I changed my mind about the menu - I want that again.) ... (setq kill-ring-max 1000) ... MODIFICATION: Do not define the...
Read more >Mastering Key Bindings in Emacs
Undefined is self-explanatory: it does no operation when it is invoked. Prefix keys are keys like C-x and C-c . They are make...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The keybinding rules defined by the extension do not have a
when
context. That means that they will be active in all contexts, even when the terminal has focus. This as designed. Please see keybindings documentation.Can you please provide clear steps that reproduce a problem but which donāt involve installing the problematic extension?
Hereās an alternative idea: what if VS Code provides the option to create keybindings of multiple keys and one modifier? As in, the user can hold down
cmd
while they pressk
andg
; if they let go ofcmd
it registers thecmd+k
, and if they add ag
while still holding downcmd
itāll register the whole shortcutcmd+k cmd+g
?Iāve stumbled into this issue myself by trying to create a keymap that resembles the IPA keyboard shortcuts here. In this website, it binds
alt+a
to one character,alt+a+a
to another, and so on. The number of times you press the second character while still holding downalt
is what determines the character being typed.