kernl API
    Preparing search index...

    Function createShortcutsService

    • The keys domain (D-054): kehto's reference service, which binds the key an applet asks for, tells it which keys it holds and runs its action when the key is pressed outside every applet, behind three rules of kernl's. A key pressed on the shell's own page reaches applets only when the shell did not use it: not one it handled, and not one typed into a field or pressed on a button. The action runs in the focused window only, where kehto would run it in every window that bound the key, so two windows of one applet do not both act. And a key that ran an action does nothing else on the page. A key pressed inside an applet never comes through here: the frame knows its own bindings and runs the action itself.

      Parameters

      • options: ShortcutsOptions

        Reserved chords, where keys are heard and the focus source.

      Returns ShortcutsService

      The service for the registry; call destroy() to stop listening.

      registry.keys = createShortcutsService({ reserved: ['Alt+/'], isFocused: (windowId) => wm.isFocused(windowId) });