treeloom-components
    Preparing search index...

    Function makeSearchKeydown

    • keydown on the free-type input, while the list is open: Down arrow moves into the list (highlighting its first match), Escape closes it, and Enter picks the option whose label is exactly the text (ignoring case and spaces at the ends) or else moves into the list - never the form's own submit with nothing picked. With the list closed, every key does what it normally does (Enter submits the form with the current pick).

      Parameters

      Returns (event: Event) => void