onKeyEvent method
Implementation
@override
KeyEventResult onKeyEvent(
KeyEvent event,
Set<LogicalKeyboardKey> keysPressed,
) {
KeyEventResult result = KeyEventResult.ignored;
if (!enabledKeyboard) {
return result;
}
for (var listener in _keyboardComponents) {
if (listener.onKeyboard(event, keysPressed)) {
result = KeyEventResult.handled;
}
}
return result;
}