What is the “When” and “Command” for ctrl-P panels?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


What is the “When” and “Command” for ctrl-P panels?



I'm trying to create my own key shortcut to act as the arrow keys in Visual Studio Code.



When I hit "ctrl-p" it pops up a window that I can navigate. However, when I use my special keybinding, which I've set as


{
"key": "alt+i",
"command": "cursorUp",
"when": "textInputFocus"
}



it does not move up to the next option like pressing the up arrow does.



I'm guessing this is due to having either the wrong command or the wrong "when" for getting the keymap to trigger when that window is open.



Normally in Atom I'd just use the key-binding-resolver, but Visual Studio Code doesn't appear to have that yet.



What is the correct command and "when" to navigate through the panels such as the "ctrl-p" panel in Visual Studio Code?




1 Answer
1



You can try, as in this Gist:


"key": "alt+i", "command": "cursorUp", "when": "editorTextFocus" },



I do have textInputFocus for the default key "up" though.


textInputFocus






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

7CLXgm1an0wpjLM w7 9C tRl2dLAdT9 4JN dI07W24LAzBBHStS2VqiNhJfqAy0ka0 b05Kfp5ReB
koXY7lx7q2KIAwJ7e6K e FE4Gq he jHjBLmzy,cVf7lVYvD

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham