MAIDR JavaScript API
    Preparing search index...

    Service for registering and managing keyboard bindings across application scopes.

    Index

    Constructors

    Methods

    • Registers all keyboard bindings and sets the initial scope.

      Parameters

      • initialScope: Scope

        The initial application scope to activate

      Returns void

    • Activates a keyboard scope, so only that scope's bindings fire.

      Context decides which scope the reader is in and fires onScopeChange; this applies it. Keeping the call here leaves one writer to the hotkeys-js scope — the same object that binds the keys and unbinds them in unregister.

      Parameters

      • scope: Scope

        The scope to activate

      Returns void