InputMethodContext.notifySurrounding

void notifySurrounding(string text, uint cursorIndex, uint selectionIndex)

Notify context that the context surrounding the cursor has changed.

If there's no selection selection_index is the same as cursor_index.

Parameters

texttext surrounding the insertion point
cursorIndexthe byte index of the insertion cursor within text.
selectionIndexthe byte index of the selection cursor within text.