Skip to content

Lib.commitComposition

Lib › commitComposition

Type: (this: void, params: CommitCompositionParams) => Promise<void>

Commits the open IME composition, firing compositionend, through the browser's input layer. The counterpart of Lib.setComposition.

With no composition open the text is simply inserted, with no composition events. It does not poll for any effect. **Must be awaited.**