onPasteEvent

fun Modifier.onPasteEvent(onPasteEvent: (event: PasteEvent) -> Boolean): Modifier

Adding this modifier to the modifier parameter of a component will allow it to receive pasted text.

Parameters

onPasteEvent

This callback is invoked when text is pasted into the terminal. Return true to stop propagation of this event. If you return false, the event will be sent to this onPasteEvent's parent.