Documentation
    Preparing search index...

    Function createKeysProxy

    • Factory for the canonical keys-domain proxy.

      Parameters

      Returns KeysProxy

      A KeysProxy ready to route keys.* envelopes

      import { createKeysProxy, originRegistry, createShellBridge } from '@kehto/shell';

      const bridge = createShellBridge(hooks);
      const keysProxy = createKeysProxy({
      runtime: bridge.runtime,
      originRegistry,
      });

      // Host-app-initiated action trigger:
      keysProxy.emit('win-editor', { type: 'keys.action', actionId: 'editor.save' });