hosanna-ui-docs - v0.9.0
    Preparing search index...

    Interface representing a key event.

    interface KeyEvent<T extends IHosannaView<ViewState> = IHosannaView<ViewState>> {
        direction: api.Direction;
        key: Key;
        keyState: KeyState;
        preventDefault?: boolean;
        target?: IHosannaView<ViewState>;
        timestamp: number;
        type: string;
        view: T;
    }

    Type Parameters

    • T extends IHosannaView<ViewState> = IHosannaView<ViewState>

    Hierarchy

    • ViewEvent<T>
      • KeyEvent
    Index

    Properties

    direction: api.Direction

    The direction of the focus transition triggered by the key event.

    key: Key

    The key associated with the event.

    keyState: KeyState

    The state of the key during the event.

    preventDefault?: boolean
    target?: IHosannaView<ViewState>

    The target view associated with the key event.

    timestamp: number

    The timestamp of the key event.

    type: string
    view: T