EditCommand
-
Cmn
interface EditCommand
BackspaceCommand |
Represents a backspace operation at the cursor position. |
CommitTextCommand |
Commit final |
DeleteAllCommand |
Deletes all the text in the buffer. |
DeleteSurroundingTextCommand |
Delete |
DeleteSurroundingTextInCodePointsCommand |
A variant of |
FinishComposingTextCommand |
Finishes the composing text that is currently active. |
MoveCursorCommand |
Moves the cursor with |
SetComposingRegionCommand |
Mark a certain region of text as composing text. |
SetComposingTextCommand |
Replace the currently composing text with the given text, and set the new cursor position. |
SetSelectionCommand |
Sets the selection on the text. |
EditCommand is a command representation for the platform IME API function calls. The commands from the IME as function calls are translated into command pattern and used by TextInputService.startInput. For example, as a result of commit text function call by IME CommitTextCommand is created.
Summary
Public functions |
||
|---|---|---|
Unit |
applyTo(buffer: EditingBuffer)Apply the command on the editing buffer. |
Cmn
|