vue-shortkey icon indicating copy to clipboard operation
vue-shortkey copied to clipboard

Can 'once' reset after key up?

Open liquidvisual opened this issue 6 years ago • 3 comments

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?

liquidvisual avatar Sep 15 '19 03:09 liquidvisual

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

fgr-araujo avatar Sep 17 '19 14:09 fgr-araujo

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

liquidvisual avatar Dec 30 '19 01:12 liquidvisual

Any word on this? :(

liquidvisual avatar Oct 02 '20 14:10 liquidvisual