We can define custom key modifier aliases via the global config.keyCodes. Following are some guidelines for the properties:
- We can’t use camelCase. Instead, we should use a kebab-case with double quotation marks.
- We can define multiple values in an array format.
See the example:
- Vue.config.keyCodes = {
- f1: 112,
- “media-play-pause”: 179,
- down: [40, 87]
- }