Skip to content

alloc/powerkeys

Repository files navigation

powerkeys

Purpose

powerkeys brings VS Code-style keyboard shortcuts to modern web apps. It handles scoped bindings, multi-step sequences, when clauses, editable-target policies, and shortcut recording in one small runtime.

Installation

pnpm add powerkeys

Quick Example

import { createShortcuts } from 'powerkeys'

const shortcuts = createShortcuts({ target: document })

shortcuts.bind({
  combo: 'Mod+k',
  preventDefault: true,
  handler: () => {
    openCommandPalette()
  },
})

Documentation Map

About

VS Code-style keyboard shortcuts for modern web apps

Resources

License

Stars

Watchers

Forks

Contributors