- {({
- getInputProps,
- getItemProps,
- selectedItem,
- inputValue,
- highlightedIndex,
- }) => {
- const inputProps = getInputProps({
- onChange: ev => {
- this.inputValue = ev.target.value;
- },
- innerRef: el => el && el.focus(),
- onKeyUp: this.handleKeyUp,
- // Timeout so the fuzzy handler can still select the module
- onBlur: () => setTimeout(this.closeQuickActions, 100),
- });
- return (
-
-
-
-
-
-
- {this.getItems(inputValue).map((item, index) => (
-
-
- {keybindings[item.id].type}:{' '}
- {keybindings[item.id].title}
-
-
- {keybindings[item.id].bindings &&
- keybindings[item.id].bindings[0] && (
-
-
- {keybindings[item.id].bindings.length === 2 &&
- keybindings[item.id].bindings[1] &&
- keybindings[item.id].bindings[1].length && (
- <>
- {' - '}
-
- >
- )}
-
- )}
-
- ))}
-
-
- );
- }}
-
-