keyInput method
Implementation
bool keyInput(
TerminalKey key, {
bool shift = false,
bool alt = false,
bool ctrl = false,
}) {
final output = inputHandler?.call(
TerminalKeyboardEvent(
key: key,
shift: shift,
alt: alt,
ctrl: ctrl,
state: this,
altBuffer: isUsingAltBuffer,
platform: platform,
),
);
if (output != null) {
_emit(output);
return true;
}
return false;
}