wrdu-keyboard
v1.1.1
Published
Keyboard manager
Downloads
178
Readme
Keyboard
Features
Manage keybinds for your nuxt app
- keyboard.up
- keyboard.down
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add wrdu-keyboard
That's it! You can now use Keyboard in your Nuxt app ✨
How to use it
Setup script:
const keyboard = useKeyboard()
keyboard.down('a', (event) => {
// do something
})
if you want to check for all keys use "all"
Contribution
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release