Function writeToClipboard

  • Copies text to clipboard.

    Note: This only works in scope of the keyboard or mouse event handler, noop otherwise.

    Parameters

    • text: string

      Text to write to clipboard.

    Returns boolean

    true if text was successfully written, or false otherwise.