Hello,
I need to control my sortable list with the keyboard. As far as I know there is no such function implemented in the current sortable widget, right? I just tried the following to extend it by myself, but there is a problem:
- Go to the demo: http://demos.telerik.com/aspnet-core/sortable/index
- Add a tabindex="0" to each <li> tag
- Add a keydown event to either the ul or the li
- $(document).on('keydown', '#sortable-basic', function (e) { console.log('1', e); });
- $(document).on('keydown', '#sortable-basic li', function (e) { console.log('2', e); });
- Now focus a li and press a key. You will see that the event is not triggered by any letter or arrow key, but just on ctrl, tab, shift ... In my case I want to sort the items by holding the ALT key + arrow left/right.
Could you please help me with a working solution?