Read the clipboard, from a menu or a button.
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 );} Copy
const data = await getClipboard( );if( data.text ) { input.setValue( data.text );}
Read the clipboard, from a menu or a button.