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

Multi tool use


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.