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

Shortcut on v-autocomplete #133

Open
felipmorais opened this issue Jun 11, 2021 · 2 comments
Open

Shortcut on v-autocomplete #133

felipmorais opened this issue Jun 11, 2021 · 2 comments

Comments

@felipmorais
Copy link

felipmorais commented Jun 11, 2021

I am trying to use the v-shortkey in a v-autocomplete componente (vuetify), but it is not working. I have tried on mac and linux.
The way I am using:
<v-autocomplete v-shortkey.focus="{windows: ['ctrl', 'k'], mac: ['meta', 'k']}"></v-autocomplete>

Does any one have a suggestion or an idea why is it not working?
Thank you all.

@fgr-araujo
Copy link
Owner

Hi,
It's because the element that you want to get focus is inside the v-autocomplete.
Try to enable the autofocus property of the v-autocomplete.

@felipmorais
Copy link
Author

Thank you for your reply @iFgR.
I have added the autofocus on the v-autocomplete component. However, the shortkey didn't work for focus when pressing this combination of keys.
Do you have any idea?
Once again, thank you for your help.

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