x4js - v2.3.33
    Preparing search index...

    Function getClipboard

    • Read the clipboard, from a menu or a button.

      Returns Promise<ClipboardRead>

      what the system holds, its image as a PNG when it has one. When it refuses or cannot be asked, what the application set last. Never files: see getEventClipboard.

      const data = await getClipboard( );
      if( data.text ) {
      input.setValue( data.text );
      }