moveCursorWordLeft method

void moveCursorWordLeft()

Implementation

void moveCursorWordLeft() {
  if (_cursorPosition == 0) return;
  int pos = _cursorPosition - 1;
  while (pos > 0 && _text[pos - 1] != ' ') {
    pos--;
  }
  _cursorPosition = pos;
  clearSelection();
  notifyListeners();
}