Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface KeyboardFocusCallbacks<E>

Optional event handlers that can be called for specific custom focus behavior. If any of these functions call event.stopPropagation(), the default focus behavior will not occur.

remarks

@since 5.0.0

Type parameters

  • E: HTMLElement

Hierarchy

Index

Properties

onDecrement?: KeyboardFocusHandler<E>

This is called whenever one of the {@link KeyboardMovementBehavior.decrementKeys} are pressed.

onFocus?: FocusEventHandler<E>
onIncrement?: KeyboardFocusHandler<E>

This is called whenever one of the {@link KeyboardMovementBehavior.incrementKeys} are pressed.

onJumpToFirst?: KeyboardFocusHandler<E>

This is called whenever one of the {@link KeyboardMovementBehavior.jumpToFirstKeys} are pressed.

onJumpToLast?: KeyboardFocusHandler<E>

This is called whenever one of the {@link KeyboardMovementBehavior.jumpToLastKeys} are pressed.

onKeyDown?: KeyboardEventHandler<E>
onSearch?: KeyboardFocusHandler<E>

This is called whenever a single letter has been pressed and KeyboardMovementBehavior.searchable is true.

Generated using TypeDoc