@estrategiahq/vue-hotkey

0.1.2 • Public • Published

Vue Hotkey

Simple Vue Hotkey

We're using hotkey under the hood for now.

Install

npm install @estrategiahq/vue-hotkey

Setup

import Vue from 'vue'
import VueHotkey from '@estrategiahq/vue-hotkey'

Vue.use(VueHotkey, {
  prevent: ['input', 'textarea'] // default configs
})

Using

// Register a binding
this.$VueHotkey.register('ctrl+a', (event) => {
  // handle event
})

// Unregister a binding
this.$VueHotkey.unregister('ctrl+a')

Readme

Keywords

Package Sidebar

Install

npm i @estrategiahq/vue-hotkey

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

4.38 kB

Total Files

6

Last publish

Collaborators

  • vitorsavedra
  • lborgav