Skip to content

KEYS ​

Implementation: experimental · Proposal: in-review (status checked 2026-10-31). Keyboard binding ships, but dedicated domain regression coverage is limited; retain explicit evaluation opt-in. All capabilities remain subject to change. Maturity and opt-in policy.

Keyboard bindings and action registration — the shell binds keys to named actions.

ts
await window.napplet.keys.registerAction({ id: 'editor.save', label: 'Save', defaultKey: 'Ctrl+S' });
const sub = window.napplet.keys.onAction('editor.save', () => save());

This non-normative guide defers to the living NAP-KEYS proposal. Feature-gate with if (window.napplet?.keys) before use; the runtime injects only available domains. Typed helpers ship from @napplet/nap/keys and @napplet/sdk.

Released under the MIT License.