kernl API
    Preparing search index...

    Function createKeymapHold

    • The wait in front of the runtime for an applet's keymap (D-054).

      An applet registers its shortcuts as it starts, a dozen or more at once, which is exactly when the runtime's startup burst guard lets fewest envelopes through and answers none of the ones it refuses. Registrations that arrive in a window's startup window are held, in order, and handed on together when it has passed, where they meet the ordinary rates. Everything registered later goes straight through.

      Parameters

      • options: KeymapHoldOptions

        The length of the startup window and what to do when it has passed.

      Returns KeymapHold

      The hold.

      const hold = createKeymapHold({ startupMs: () => 1000, release: (windowId) => bridge.releaseDeferred(windowId) });
      hold.holds('w1', { type: 'keys.registerAction' }, Date.now()); // true: held until the window's first second is over