v-hotkey
v-hotkey copied to clipboard
This part of code “e.preventDefault()” should be called at last.
In the code src/main.js
sixth line, if I use the .prevent
, here first called e.preventDefault ()
, which is very problematic. It will prevent many browsers from default. For example, in the same page, I still have a input, I use backspace
keys, ctrl +v
or ctrl+x
and other key combinations can not respond, it should be called after callback execution.