skadefro / vue-shortkey

MIT License
1 stars 0 forks source link

how to stop preventDefault? #1

Open 13133693731 opened 2 months ago

13133693731 commented 2 months ago

how to use it with stop preventDefault?

skadefro commented 2 months ago

It has been a while since i worked on this ( and i mainly just fixed a few things to make it work in vue 3 Just to I better understand, do you want to prevent the keyboard combination to be sent to the element with focus or do you want to prevent the button's main action to also fire ?

13133693731 commented 2 months ago

When I use it, it triggers the browser default event, just like pressing F5 will refresh the page. I want to prevent it from refreshing the page

13133693731 commented 2 months ago

Thanks

13133693731 commented 2 months ago

I use vue2

skadefro commented 2 months ago

I see the original repo is update for vue3 support as well. But either way, you could try asking there https://github.com/fgr-araujo/vue-shortkey

13133693731 commented 2 months ago

Thanks