handle method
bool
handle({
- required PlutoKeyManagerEvent keyEvent,
- required PlutoGridStateManager stateManager,
- required RawKeyboard state,
If the shortcut registered in actions matches, the action for the shortcut is executed.
If there is no matching shortcut and returns false , the default shortcut behavior is processed.
Implementation
bool handle({
required PlutoKeyManagerEvent keyEvent,
required PlutoGridStateManager stateManager,
required RawKeyboard state,
}) {
for (final action in actions.entries) {
if (action.key.accepts(keyEvent.event, state)) {
action.value.execute(keyEvent: keyEvent, stateManager: stateManager);
return true;
}
}
return false;
}