programmable-matter
programmable-matter copied to clipboard
cmd-L to focus search box doesn't re-select current search if box already focused
cmd-L focuses the search box and selects its contents; but if the box is already focused, the contents are not re-selected.
This is due to the goofy (?) setup of focus as a piece of React state; we hook the change in state to select the contents, but if the state hasn't changed the hook doesn't run. Seems like we need an action in addition (instead of?) the state change.