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

Shortcut on v-autocomplete

Open felipmorais opened this issue 3 years ago • 2 comments

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.

felipmorais avatar Jun 11 '21 13:06 felipmorais

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.

fgr-araujo avatar Jun 18 '21 11:06 fgr-araujo

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.

felipmorais avatar Jun 24 '21 14:06 felipmorais