Oct 21, 2019 in Vue.JS

How do you define custom key modifier aliases?

1 Answer

0 votes
Oct 21, 2019

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

  1. You can't use camelCase. Instead you can use kebab-case with double quotation marks
  2. You can define multiple values in an array format
Vue.config.keyCodes = {
  f1: 112,
  "media-play-pause": 179,
  down: [40, 87]
Click here to read more about Vue JS
Click here to read more about Insurance

Related questions