Flarum (v2.0.0-beta.4)
    Preparing search index...

    The KeyboardNavigatable class manages lists that can be navigated with the keyboard, calling callbacks for each actions.

    This helper encapsulates the key binding logic, providing a simple fluent API for use.

    Index

    Constructors

    Properties

    callbacks: Map<number, KeyboardEventHandler> = ...

    Callback to be executed for a specified input.

    whenCallback: ShouldHandle = ...

    Callback that determines whether keyboard input should be handled. By default, always handle keyboard navigation.

    Methods