React Hookers - v6.3.0
    Preparing search index...

    Interface KeyboardProps

    Props for the useKeyboard hook.

    interface KeyboardProps {
        isDisabled?: boolean;
        onKeyDown?: KeyboardEventHandler;
        onKeyUp?: KeyboardEventHandler;
    }
    Index

    Properties

    isDisabled?: boolean

    If true, keyboard listeners are disabled.

    false
    
    onKeyDown?: KeyboardEventHandler

    A handler that is called when the user presses a key.

    onKeyUp?: KeyboardEventHandler

    A handler that is called when the user releases a key.