sendKeyNoPump method

void sendKeyNoPump(
  1. String char
)

Sends a KeyMsg without capturing the view afterwards.

Useful when you want to batch multiple events before a single pump.

Implementation

void sendKeyNoPump(String char) {
  _ensureRunning();
  _program!.send(
    KeyMsg(
      terminal_keys.Key(terminal_keys.KeyType.runes, runes: char.codeUnits),
    ),
  );
}