👋
Welcome to combo-keys
🏠 Homepage
Getting Started
install
npm install @xyh19/combo-keys
usage
import { ComboKeys } from '@xyh19/combo-keys'
const comboKeys = new ComboKeys([
['Ctrl+V', () => {
// ...do somethings
}],
['Ctrl+LeftClick', () => {
// ...do somethings
}]
])
window.addEventListener('mouseup', (e) => comboKeys.dispatch(e))
window.addEventListener('mousedown', (e) => comboKeys.dispatch(e))
window.addEventListener('keydown', (e) => comboKeys.dispatch(e))
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a
This README was generated with