Replace the clipboard contents.
Set the next node in chain.
Write text to the clipboard.
Read text from the clipboard.
import fluid; TextInput first, second; // Children of a ClipboardChain will share the same clipboard auto root = clipboardChain( vspace( first = textInput(), second = textInput(), ), ); root.draw(); // Text copied by the first input... first.value = "Hello!"; first.selectAll(); first.copy(); // ... can now be pasted into the other second.paste(); assert(second.value == "Hello!");
Local clipboard provider. Makes it possible to copy and paste text between nodes in the same branch.
ClipboardChain does not communicate with the system, so the clipboard will *not* be accessible to other apps. This makes this node suitable for testing.