Gtk.IMContext::delete-surrounding

function callback(i_m_context, offset:Number, n_chars:Number, ):Boolean;

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

i_m_context

instance of Gtk.IMContext that is emitting the signal

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.