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

Feature request: keyboard control to close the modal #10

Closed
alsciende opened this issue Aug 22, 2017 · 2 comments
Closed

Feature request: keyboard control to close the modal #10

alsciende opened this issue Aug 22, 2017 · 2 comments

Comments

@alsciende
Copy link

This plugin is awesome, thank you. I have a small feature request: close the modal window when a key is pressed, by default 'Esc'. That's a standard feature for modal windows and I'm really missing it.

@javisperez
Copy link
Owner

Hey thanks for the issue! I've been considering this too, I'll have a look at it later today, thank you!

@javisperez
Copy link
Owner

@alsciende I've added an escapable option, by default is false to prevent drastic changes on the users already using Vuedals as it was, so, just set escapable: true and should be able to dismiss the modal by using the escape key.

Thank you for the issue!

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

No branches or pull requests

2 participants