handleEnterKey method

bool handleEnterKey(
  1. KeyEvent event
)

Implementation

bool handleEnterKey(KeyEvent event) {
  if (event.logicalKey == LogicalKeyboardKey.enter) {
    if (document.imeHandler.isComposing) {
      return false;
    }
    if (document.imeHandler.state.justCommittedComposition) {
      document.imeHandler.state.justCommittedComposition = false;
      return false;
    }
    if (document.registry.dispatchEnter(document)) return true;
    document.saveState(description: 'Enter', forceNewAction: true);
    executeHandleEnter(document);
    return true;
  }
  return false;
}