Dhx scheduler navigation key

hi,
By default the left,right arrow key is switching through the dates of the scheduler based on the current view,
I want that changed to switch through the section’s(x-axis) in units view . so that I can navigate through the sections by the left right arrow keys if there is too many sections.

Is there any alternative way to resolve this ?

thanks :slight_smile:

dhtmlxEvent(document, _isOpera ? "keypress" : "keydown", function(e) {
        if (!scheduler._is_key_nav_active())
            return!0;
        if (e = e || event, 37 == e.keyCode || 39 == e.keyCode) {
            
            alert("ddd");return;
            e.cancelBubble = !0;
            var t = scheduler.date.add(scheduler._date, 37 == e.keyCode ? -1 : 1, scheduler._mode);
            return scheduler.setCurrentView(t), !0
        }

I guess I need to put the section navigation code here? 

hi,
By default the left,right arrow key is switching through the dates of the scheduler based on the current view,
I want that changed to switch through the section’s(x-axis) in units view . so that I can navigate through the sections by the left right arrow keys if there is too many sections.

Is there any alternative way to resolve this ?

thanks :slight_smile:

Hello,
this is no supported by the public API of the scheduler, and the implementation of keyboard navigation extension does not allows extending it’s behavior.

What you can do is to copy key_nav extension from the dhtmlxScheduler/sources and add the required behavior to ‘keydown’ handler