Signal
WPEWebKitInputMethodContext::delete-surrounding
since: 2.28
Declaration
void
delete_surrounding (
WebKitInputMethodContext* self,
gint offset,
guint n_chars,
gpointer user_data
)
Description [src]
Emitted when the input method wants to delete the context surrounding the cursor.
If offset is a negative value, it means a position before the start of the selection,
or before the cursor if there is no selection. The text to be deleted can include
part of the selection. If n_chars is 0, nothing is deleted and the cursor is moved
by offset.
Both offset and n_chars are counted in UTF-16 code units, not in characters:
a character outside the Basic Multilingual Plane, like most emoji, counts as 2.
Note that the indexes passed to webkit_input_method_context_notify_surrounding() are in bytes instead.
| Default handler: The default handler is called after the handlers added via |
| Available since: 2.28 |