connectDeleteSurrounding

fun connectDeleteSurrounding(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (offset: Int, nChars: Int) -> Boolean): <Error class: unknown class>

The ::delete-surrounding signal is emitted when the input method needs to delete all or part of the context surrounding the cursor.

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: offset the character offset from the cursor position of the text to be deleted. A negative value indicates a position before the cursor.; nChars the number of characters to be deleted. Returns true if the signal was handled.