Hello,
Thank you very much for the suggestion.
I agree with you that keyboard navigation would be an excellent addition to the drawer. While this feature request gains popularity, you can use some standard JavaScript techniques to implement it yourself:
$(document.body).keydown(function(e) {
if (e.altKey && e.keyCode == 87) {
$("#drawer").focus();
}
});
$(document.body).keyup(function(e) {
if(e.keyCode == 9){
$(".k-state-focused").removeClass("k-state-focused");
$(e.target).addClass("k-state-focused");
}
});
$("[data-role='drawer-item']").attr("tabindex",0).keydown(function(e){
if(e.keyCode == 13){
drawer.drawerContainer.find("#drawer-content > div").addClass("hidden");
drawer.drawerContainer.find("#drawer-content").find("#" + $(e.target).find(".k-item-text").text()).removeClass("hidden");
$(".k-state-selected").removeClass("k-state-selected");
$(e.target).addClass("k-state-selected");
}
});
Here is a sample implementation for your reference:
https://dojo.telerik.com/@bubblemaster/AWaHONUs/5
Kind Regards,
Alex Hajigeorgieva
Progress Telerik