This function allows for keyboard navigation through dropdowns. The custom argument is optional.
The index of the element you're on
Inner index number
The orientation of the dropdown
Array of refs to the items in the dropdown
Array of items in the dropdown
Optional
Allows for handling of flexible content
This function allows for keyboard navigation through dropdowns. The custom argument is optional.