0 votes
in VueJS by
How do you define custom key modifier aliases in VueJS?

1 Answer

0 votes
by
You can define custom key modifier aliases via the global config.keyCodes. There are few guidelines for the properties

You can't use camelCase. Instead you can use kebab-case with double quotation marks

You can define multiple values in an array format

Vue.config.keyCodes = {

  f1: 112,

  "media-play-pause": 179,

  down: [40, 87]

}

Related questions

0 votes
asked Sep 9, 2023 in VueJS by AdilsonLima
0 votes
asked Sep 7, 2023 in VueJS by DavidAnderson
...