vite-react
    Preparing search index...
    type KeyboardProps = {
        key_outcomes: Record<string, Outcome>;
        on_key_press: (key: string) => void;
    }
    Index

    Properties

    key_outcomes: Record<string, Outcome>

    The status of each key.

    on_key_press: (key: string) => void

    Callback that is invoked when a key is pressed.

    Type declaration

      • (key: string): void
      • Parameters

        • key: string

          the key of the button

        Returns void