You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.
8
+
Vue3-ShortKey - a fork/port of `vue-shortkey`for VueJS 3.x accepts shortcuts globaly and in a single listener. I'm not vue3 expert, but I edited this plugin until it started working on Vue-cli with Vue 3.
9
9
10
10
## Install
11
11
```
12
-
npm install vue-shortkey --save
12
+
npm install vue3-shortkey --save
13
13
```
14
14
15
15
## Usage
16
16
```javascript
17
-
Vue.use(require('vue-shortkey'))
17
+
Vue.use(require('vue3-shortkey'))
18
18
```
19
19
Add the shortkey directive to the elements that accept the shortcut.
20
20
The shortkey must have explicitly which keys will be used.
@@ -126,12 +126,12 @@ You can avoid shortcuts within fields if you really need it. This can be done in
126
126
* Generalizing type of element that will not perform shortcut. To do this, insert a list of elements in the global method.
0 commit comments