The keyboard.resetFocus() method resets the keyboard focus in the JavaScript Scheduler.
The focus is set to the upper-left corner of the current viewport. The target is resolved according to the internal rules and can be a cell or an event.
If the focus is not active yet, calling this method activates it.
Available since 2021.3.5081.
Declaration
DayPilot.Scheduler.keyboard.resetFocus();Example
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
dp.keyboard.resetFocus();See Also
Keyboard [doc.daypilot.org]
DayPilot.Scheduler.keyboard.move()
DayPilot.Scheduler.keyboard.getFocus()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot