Because the focus should always be on the search box, listening for input keyboard events, when the direction key is pressed, it is handed over to the drop-down menu management. The drop-down menu calculates the index according to the direction, and adds the activation style to the corresponding entry
Because the focus should always be on the search box, listening for input keyboard events,
when the direction key is pressed, it is handed over to the drop-down menu management. The drop-down menu calculates the index according to the direction, and adds the activation style to the corresponding entry