Interface

TimelineKeyboardOptions

Options for `useTimelineKeyboard`.

Signature

Type Definition
Interface TimelineKeyboardOptions

Properties

NameSignatureDescription
bindings?bindings?: false | Partial<Record<TimelineKeyboardCommand, typeOperator>>Custom command bindings. Passing `false` disables all shortcut handling.
commandHandlers?commandHandlers?: Partial<Record<TimelineKeyboardCommand, TimelineKeyboardCommandHandler>>Replaces individual command implementations, such as media-aware playback.
disabled?disabled?: booleanDisables keyboard handling while preserving returned scope props.
frameRate?frameRate?: TimecodeFrameRateSequence frame rate used for exact frame stepping.
frameStepCount?frameStepCount?: numberNumber of frames moved by step commands. Defaults to `1`.
label?label?: stringAccessible label for the default scope props.
onCommandError?(error: Error, command: TimelineKeyboardCommand): voidReceives unexpected thrown/rejected errors. Defaults to browser error reporting.
onCommandResult?(command: TimelineKeyboardCommand, result: TimelineKeyboardCommandResult): voidReceives a command's settled status after a keyboard shortcut invokes it.
platform?platform?: TimelineKeyboardPlatformPlatform used for platform-specific preset bindings. Defaults to the current browser platform.
preset?preset?: TimelineKeyboardPresetPreset used when `bindings` is not supplied. Defaults to `professionalEditor`.
preventDefault?preventDefault?: booleanPrevents browser defaults after a shortcut is claimed. Defaults to `true`.
stopPropagation?stopPropagation?: booleanStops propagation after a shortcut is claimed. Defaults to `false`.
zoomStepRatio?zoomStepRatio?: numberMultiplicative zoom step used by zoom commands. Defaults to `1.2`.