MAIDR Documentation - v3.58.2
    Preparing search index...

    Executes commands based on key bindings within the current scope.

    The current scope is always read live from the underlying Context, so it stays in sync when Context.toggleScope() is called. An Emitter is provided so React hooks can subscribe to scope changes.

    Implements

    Index

    Constructors

    Properties

    onScopeChange: Event<Scope> = ...

    Event that fires when the current scope changes. Subscribers (e.g. React hooks) can use this to reactively update.

    Methods

    • Executes a command based on the provided key if it's valid for the current scope.

      Parameters

      • commandKey: never

        The key representing the command to execute

      Returns void