deleteSelection method

bool deleteSelection()

Deletes the current selection, returning whether anything changed.

Implementation

bool deleteSelection() {
  return _runEditFrame(() {
    _beginHistoryAction(_TextInputHistoryAction.replace, breakChain: true);
    final changed = _deleteSelection();
    if (changed) {
      _resetDesiredCol();
      _updateSuggestions();
      _handleOverflow();
    }
    return changed;
  });
}