The keyboard.focusEvent() method sets the keyboard focus of the JavaScript Scheduler to the specified event.
Available since 2021.3.5070.
Declaration
DayPilot.Scheduler.keyboard.focusEvent(e);Parameters
e(DayPilot.Event or raw DayPilot.Event.data object) - event to receive keyboard focus
Notes
If the event cannot be found, the method throws an exception.
Example
const event = dp.events.find("1");
dp.keyboard.focusEvent(event);See Also
DayPilot.Scheduler.keyboard.focusCell()
DayPilot.Scheduler.keyboard.getFocus()
DayPilot.Scheduler.keyboard.move()
Keyboard Support [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot