handleTabKey method

bool handleTabKey(
  1. KeyEvent event
)

Implementation

bool handleTabKey(KeyEvent event) {
  if (event.logicalKey == LogicalKeyboardKey.tab) {
    if (document.imeHandler.isComposing) {
      return false;
    }
    if (document.registry.dispatchTab(document, isShiftPressed: isShiftPressed)) return true;
    document.saveState(description: isShiftPressed ? 'Outdent' : 'Indent', forceNewAction: true);
    return executeHandleTab(document, shift: isShiftPressed);
  }
  return false;
}