Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once and multiple keys not firing event #126

Open
hackerESQ opened this issue Mar 3, 2021 · 1 comment
Open

Once and multiple keys not firing event #126

hackerESQ opened this issue Mar 3, 2021 · 1 comment

Comments

@hackerESQ
Copy link

hackerESQ commented Mar 3, 2021

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?

@fgr-araujo
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants