Skip to content

improve Vue.config.keyCode typing #5008

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

Merged
merged 1 commit into from
Feb 25, 2017
Merged

Conversation

kazupon
Copy link
Member

@kazupon kazupon commented Feb 25, 2017

I found it, when I'm working flowtype definition of vue into flow-typed. (registration soon 😉 )

Vue.config.keyCodes allow the Array<number>.

Vue.config.keyCodes.up = [1, 87]

related:
https://vuejs.org/v2/api/#keyCodes

@yyx990803 yyx990803 merged commit 135f06d into vuejs:dev Feb 25, 2017
@kazupon kazupon deleted the improve/flow branch February 26, 2017 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants