0.1.2 • Published 4 years ago

@estrategiahq/vue-hotkey v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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')
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago