runScopeHandlers function

bool runScopeHandlers(
  1. dynamic view,
  2. KeyEvent event,
  3. String scope
)

Run the key handlers registered for a given scope.

The event should be a key down event. Returns true if any of the handlers handled it.

Implementation

bool runScopeHandlers(dynamic view, KeyEvent event, String scope) {
  final state = view.state as EditorState;
  return runHandlers(getKeymap(state), event, view, scope);
}