MAIDR JavaScript API
    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.

    Implements

    Index

    Constructors

    Methods

    • Whether the current scope binds a command, so that executeCommand would run it. Runs nothing.

      Parameters

      • commandKey: never

        The key representing the command

      Returns boolean

      True when the current scope's keymap has the command

    • 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 boolean

      Whether the current scope binds the command, and so whether it was run