Itβs good for this to work using the following:
Added tabindex to all items in the list. This allows the user to add tabs to and through individual list items.
The following js are added:
$('.sortable li').focus(function() { $(this).addClass("ui-selecting"); }); $('.sortable li').focusout(function() { $(this).removeClass("ui-selecting"); }); $('.sortable li').bind('keydown', function(event) { ... if(event.which == 38)
Thus, the tab allows you to move and move around the items, while the arrows move the items up and down the list. It works, but, of course, it looks very primitive compared to dragging and dropping moving graphics when using the mouse. Wondering if I can revive the move, with reasonable efforts ...
source share