Function isPrintableChar

  • Checks if the specified key represents a printable character.

    A printable character meets one of the following criteria:

    • It is an uppercase or lowercase letter.
    • It is a number.
    • It is the Backspace or Delete key.

    Parameters

    • key: string

      Key to check if printable.

    Returns boolean

    true if the specified key is a printable character.