Signature
useTimelineKeyboard(options: TimelineKeyboardOptions = {}): UseTimelineKeyboardResultParameters
| Name | Type | Description |
|---|---|---|
| options | TimelineKeyboardOptions | Keyboard preset, custom bindings, frame rate, and event handling options. |
Returns
Current bindings, scope props, a shortcut matcher, and a command executor.
Examples
const keyboard = useTimelineKeyboard({ commandHandlers: { togglePlayback: () => media.playing ? media.pause() : media.play() },});return <div {...keyboard.scopeProps}>Timeline surface</div>;