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

Closing the datepicker with ESC in v6 #2450

Closed
alexnb opened this issue Dec 16, 2021 · 2 comments
Closed

Closing the datepicker with ESC in v6 #2450

alexnb opened this issue Dec 16, 2021 · 2 comments

Comments

@alexnb
Copy link

alexnb commented Dec 16, 2021

It seems that reacting to key events does not work like in V4 ("removed keybindings - this might come back later" in the changelog). How can I close the datepicker on ESC?

Thanks!

@Eonasdan
Copy link
Owner

The keybindings were always messy. I'm hoping to reintroduce that option as a plugin or something like that so people could opt-in to the feature.

For now, I'd suggest listen to that key press globally and calling .hide() on the picker. I realize that might be less then ideal but that's all I have for you at this moment.

@Eonasdan
Copy link
Owner

Eonasdan commented Apr 1, 2022

I'm going to close this in favor of #2390. I'll be keeping track of keybindings and accessibility there.

@Eonasdan Eonasdan closed this as completed Apr 1, 2022
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