downshift-js/downshift

Have `Home`/`End` keys change cursor position, not selected item

Open

#1,162 opened on Aug 25, 2020

 (9 comments) (6 reactions) (0 assignees)JavaScript (980 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (11,761 stars)
PR merge metrics
 (PR metrics pending)

Description

Downshift (useComboBox) is set up for Home and End keys to select the first or last option in the dropdown. However, the WAI-ARIA ListBox spec suggests that those keys should have their normal behavior of moving the cursor to the beginning/end of the text input.

Contributor guide