We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4839b6 commit d485bb4Copy full SHA for d485bb4
readme.md
@@ -41,6 +41,8 @@ const Demo = () => {
41
render(<Demo />);
42
```
43
44
+The user can select the item with arrow keys (or hjkl) + enter, or by hitting the number of the option directly.
45
+
46
<img src="media/demo.gif" width="508">
47
48
## Props
src/SelectInput.tsx
@@ -137,6 +137,7 @@ function SelectInput<V>({
137
}
138
139
140
+ // Enable selection directly from number keys.
141
if (/^[1-9]$/.test(input)) {
142
const targetIndex = Number.parseInt(input, 10) - 1;
143
0 commit comments