Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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