delete_surrounding


Description:

[ HasEmitter ]
public virtual signal bool delete_surrounding (int offset, int n_chars)

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

Parameters:

offset

the character offset from the cursor position of the text to be deleted. A negative value indicates a position before the cursor.

n_chars

the number of characters to be deleted

Returns:

true if the signal was handled.