handle method
Processes a key event through all bindings.
Returns the first non-ignored result, or KeyActionResult.ignored if no binding matched.
Implementation
KeyActionResult handle(KeyEvent event) {
for (final binding in _bindings) {
final result = binding.tryHandle(event);
if (result != null && result != KeyActionResult.ignored) {
return result;
}
}
return KeyActionResult.ignored;
}