I am trying to override the default keyboard navigation in the Kendo list view.
By default, the Kendo keyboard distinguishes between the selected items and the current item. Keyboard navigation moves the current item separately from the selected items. Selected items are highlighted, and the current item has a border.
I want the selected item to move with the current item.
I tried to disable the keygen Kendo handler and replaced it with my own handler.
$('#listView').off('keydown.kendoListView');
$('#listView').on('keydown.kendoListView', function (e) {
var listView = $('#listView').data('kendoListView');
switch (e.which) {
case 40:
var newSelection = listView.select().next();
listView.select(newSelection);
listView.current(newSelection);
break;
case 38:
var newSelection = listView.select().prev();
listView.select(newSelection);
listView.current(newSelection);
break;
}
});
, , . . , .
, :
http://jsfiddle.net/blutter/ULLu8/19/
? Kendo?