I'm implementing Dragon Drop to create accessible, draggable lists. I need to add a button to each list item to allow it to be deleted, but no matter how I delegate the click on my button I cannot seem to prevent Dragon Drops default behavior from firing.
As such I've decided to place my delete buttons within another div and position them relative to their corresponding list item. However, because they are out of the flow of the document, users leveraging keyboard navigation will not get to any of the delete buttons until after they've gone through the entire list.
Lets say that I have the following structure:
<ul>
<li id="item-1">Item 1</li>
<li id="item-2>Item 2</li>
</ul>
<div>
<button id="delete-item-1"></button>
<button id="delete-item-2"></button>
</div>
Is there some way to affect keyboard navigation such that users will tab through elements in the following order?
#item-1#delete-item-1#item-2#delete-item-2
I've tried setting sequential tabindex attributes, but that doesn't work. I'm assuming that's due to them not living within the same element.