Notify this that the context surrounding the cursor has changed.
If there's no selection selection_index
is the same as cursor_index
.
this | |
text |
text surrounding the insertion point |
length |
the length of |
cursor_index |
the byte index of the insertion cursor within |
selection_index |
the byte index of the selection cursor within |