Function

useTimelineKeyboard

Provides focus-scoped timeline keyboard shortcuts. The hook never installs global listeners. It handles shortcuts only from the element that spreads `scopeProps` or one of that element's descendants.

Signature

Type Definition
useTimelineKeyboard(options: TimelineKeyboardOptions = {}): UseTimelineKeyboardResult

Parameters

NameTypeDescription
optionsTimelineKeyboardOptionsKeyboard preset, custom bindings, frame rate, and event handling options.

Returns

Current bindings, scope props, and a pure shortcut matcher.