Posts

Showing posts with the label keyboard-shortcuts

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

Image
Clash 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 ...

How to have a android:background color and still retain the gray focus highlight for lists in Android?

Image
Clash Royale CLAN TAG #URR8PPP How to have a android:background color and still retain the gray focus highlight for lists in Android? I'm porting my app to Chrome OS and there are a few places in the app where arrow key navigation works, but the current focused element is not highlighted in any way. I've found that whenever I set a background color for an element like <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ... android:background="@color/white" > ... </LinearLayout> then the default highlighting of the focused element will not show. Removing this will show the default background (which is not always the same as what I want). Also, in cases where I use a selector in a ListView, the background is in front of the intended highlighting drawable (which can be seen if the color is somewhat transparent). <?xml version="1.0...