Is there something like element.nextSiblingByTabIndex and element.prevSiblingByTabIndex.
I created a dropdown menu. It needs to handle [up key], [down key], [home], [end], etc in order to focus the next/prev item.
The focus order may be irregular due to tabindex="123".
I want to perform:
handleNextKey = (e) => e.currentTarget.nextSiblingByTabIndex?.focus?.()
Here the screenshot of my project: