Skip to content

cmd-L to focus search box doesn't re-select current search if box already focused #31

@jaked

Description

@jaked

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions