Input.imeSetCompositionThis method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.
| Name | Type | Description |
|---|---|---|
text | string | The text to insert |
selectionStart | integer | selection start |
selectionEnd | integer | selection end |
replacementStart (optional) | integer | replacement start |
replacementEnd (optional) | integer | replacement end |
{
"id": 1,
"method": "Input.imeSetComposition",
"params": {
"text": "text-value",
"selectionStart": 1,
"selectionEnd": 1
}
}
{
"id": 1,
"result": {}
}
const result = await send('Input.imeSetComposition', {"text": "text-value", "selectionStart": 1, "selectionEnd": 1});
console.log(result);