commitComposing method

bool commitComposing()

Commits a pending IME composition as terminal input, and reports whether there was one. See CustomTextEditState.commitComposing.

Call before sending input that bypasses the keyboard (an extra-keys bar key, a paste button) so the terminal receives what the user typed ahead of it, in the order they typed it.

Implementation

bool commitComposing() {
  return _customTextEditKey.currentState?.commitComposing() ?? false;
}