@just-web/keyboard
v7.2.4
Published
just-web keyboard plugin module
Downloads
10
Readme
@just-web/keyboard
@just-web/keyboard provides functionality about keyboards:
- ✅ Key bindings: shortcuts for all platforms.
- 💡 Key stroke simulation
- 💡 Virtual Keyboard
- 💡 Key stroke capture and display
Install
# npm
npm install @just-web/keyboard
# yarn
yarn add @just-web/keyboard
# pnpm
pnpm install @just-web/keyboard
#rush
rush add -p @just-web/keyboard
Usage
import { justApp } from '@just-web/app'
import { keyboardGizmoFn } from '@just-web/keyboard'
const app = await justApp({ name: 'your-awesome-app' })
.with(keyboardGizmoFn())
.create()
app.keyboard.keyBindingContributions
It provides a keyBindingContributions
to register key bindings.
Typically, you don't need to use it directly.
Instead, use command()
from @just-web/command.