ink-cartridge
    Preparing search index...

    Type Alias DeactivateElementFn

    DeactivateElementFn: (targetLayerId: string, targetElementId: string) => void

    Marks a layer element as inactive (active: false). The element stays mounted — the flag is purely keyboard-side: on the next sync the keyboard adapter drops the element's ID from the layer's activeElements set, so the keyboard engine stops dispatching key events to that element's bindings while keeping all registration data intact for a later reactivation via ActivateElementFn. When this was the layer's last active element, the layer stops intercepting keys and they fall through to lower layers.

    Type Declaration

      • (targetLayerId: string, targetElementId: string): void
      • Parameters

        • targetLayerId: string
        • targetElementId: string

        Returns void