Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should config.keyCodes support multiple keys for a single modifier? #4102

Closed
crswll opened this issue Nov 3, 2016 · 3 comments
Closed

Should config.keyCodes support multiple keys for a single modifier? #4102

crswll opened this issue Nov 3, 2016 · 3 comments

Comments

@crswll
Copy link

crswll commented Nov 3, 2016

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 trigger left2, S or DOWN to trigger down2, D or RIGHT to trigger right2.

What is actually happening?

Nothing. I thought it would work because of this line from the source but it doesn't...

'delete': [8, 46]

Also, kind of a side note:

Can we overwrite the default keyCodes? I'd rather name my custom alias up instead of up2.

@yyx990803
Copy link
Member

The current public API doesn't support Array yet, but this could be useful.

@crswll
Copy link
Author

crswll commented Nov 3, 2016

I agree! I'm doing an app for a set top box and the remote's keyCodes don't always line up with my computer.

@yyx990803
Copy link
Member

Closed via #4328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants