• a react hook that calls the handler when a given key is down

    Parameters

    • key: string
    • handler: ((down: boolean, e: KeyboardEvent) => void)
        • (down: boolean, e: KeyboardEvent): void
        • Parameters

          • down: boolean
          • e: KeyboardEvent

          Returns void

    • deps: DependencyList = []

    Returns void

Generated using TypeDoc