Recently, we had introduced a re-usable SelectableList component which used in CommandMenu. It provides a simple way to track which item is selected with keyboard.
Right now it only support one dimension (arrow up and down) but we would like to:
extend it to be 2-dimensions
use it to add arrow selection on IconPicker
Current behavior
On the IconPicker, it is not possible to select an icon using the keyboard (arrow up, down, left, right)
Expected behavior
On the IconPicker, is is possible to select an icon using the keyboard
Technical inputs
Improve SelectableList API to support 2 dimensions selectableItemIds (string[] => string[][])
improve SelectableList API to pass the Hotkeyscope (right now we have hardcoded CommandMenu one)
Scope & Context
Recently, we had introduced a re-usable SelectableList component which used in CommandMenu. It provides a simple way to track which item is selected with keyboard. Right now it only support one dimension (arrow up and down) but we would like to:
Current behavior
On the IconPicker, it is not possible to select an icon using the keyboard (arrow up, down, left, right)
Expected behavior
On the IconPicker, is is possible to select an icon using the keyboard
Technical inputs