The keyboard.move() method moves the keyboard focus in the specified direction.
The target is resolved using the internal rules. It behaves the same way as if the user pressed an arrow key.
Available since 2021.3.5070.
Declaration
DayPilot.Scheduler.keyboard.move(direction[, options]);Parameters
direction("left","right","up", or"down") - direction in which the focus should moveoptions.dontFireEvent(boolean) - if set totrue, onKeyboardFocusChange and onKeyboardFocusChanged are not fired for this move
Example
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
dp.keyboard.move("right");See Also
Keyboard [doc.daypilot.org]
DayPilot.Scheduler.keyboard.resetFocus()
DayPilot.Scheduler.keyboard.getFocus()
DayPilot.Scheduler.onKeyboardFocusChange
DayPilot.Scheduler.onKeyboardFocusChanged
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot