fgr-araujo / vue-shortkey

Vue-ShortKey - The ultimate shortcut plugin to improve the UX
MIT License
889 stars 101 forks source link

Can 'once' reset after key up? #89

Open liquidvisual opened 5 years ago

liquidvisual commented 5 years ago

First of all, great library - thanks for making this!

I'm looking through the docs and was under the impression that v-shortkey.once would only fire the command once with every key press (instead of repeatedly firing while holding down the keys). Instead it appears to fire strictly one time only - you need to refresh the browser to reset it.

What would be the use case for this? I'm thinking triggering an action once every key press and resetting on release would be far more useful? Is there a way to achieve that with the current library?

fgr-araujo commented 5 years ago

You're welcome! This is a wrong behavior. I will mark this as a bug

liquidvisual commented 4 years ago

Hi, I was just wondering if this bug has been fixed in the later versions?

liquidvisual commented 4 years ago

Any word on this? :(