Should config.keyCodes
support multiple keys for a single modifier?
#4102
Labels
config.keyCodes
support multiple keys for a single modifier?
#4102
Vue.js version
2.0.3
Reproduction Link
https://jsfiddle.net/crswll/5yynzyj3/
Steps to reproduce
Focus the input and try using W, A, S or D to trigger key up instead of UP, RIGHT, DOWN and LEFT.
What is Expected?
I expected to be able to hit W or UP to trigger
up2
, A or LEFT to triggerleft2
, S or DOWN to triggerdown2
, D or RIGHT to triggerright2
.What is actually happening?
Nothing. I thought it would work because of this line from the source but it doesn't...
vue/src/compiler/codegen/events.js
Line 15 in b51b9ea
Also, kind of a side note:
Can we overwrite the default keyCodes? I'd rather name my custom alias
up
instead ofup2
.The text was updated successfully, but these errors were encountered: