SuperEditorKeyboardAction typedef

SuperEditorKeyboardAction = ExecutionInstruction Function({required SuperEditorContext editContext, required KeyEvent keyEvent})

Executes this action, if the action wants to run, and returns a desired ExecutionInstruction to either continue or halt execution of actions.

It is possible that an action makes changes and then returns ExecutionInstruction.continueExecution to continue execution.

It is possible that an action does nothing and then returns ExecutionInstruction.haltExecution to prevent further execution.

Implementation

typedef SuperEditorKeyboardAction = ExecutionInstruction Function({
  required SuperEditorContext editContext,
  required KeyEvent keyEvent,
});