Skip to content

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

Closed
@crswll

Description

@crswll

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions