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

Once and multiple keys not firing event

Open hackeresq opened this issue 3 years ago • 1 comments

Hello @iFgR, this is a fantastic library! Great work!

I am making a cross-platform web app and your suggestion in #103 helps a lot. But it seems that is incompatible with the .once modifier?

For example, this triggers the event:

   <v-btn
        @click="saveEvent"
        @shortkey="saveEvent"
        v-shortkey="{windows: ['ctrl', 's'], mac: ['meta', 's']}"
    >
        Save Event
    </v-btn>

But this does not:

    <v-btn
        @click="saveEvent"
        @shortkey="saveEvent"
        v-shortkey.once="{windows: ['ctrl', 's'], mac: ['meta', 's']}"
    >
        Save Event
    </v-btn>

I tried looking at the source, but I'm not seeing any obvious issues. Any suggestions?

hackeresq avatar Mar 03 '21 04:03 hackeresq

Hi @hackerESQ, I'll reproduce and check this out.

fgr-araujo avatar Mar 29 '21 03:03 fgr-araujo