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 proposal: close modal on keydown Escape #25

Closed

Conversation

Shinyaigeek
Copy link
Contributor

This PR is just a feature proposal, so If you don't think it is needed, please feel free to close this PR.

Motivation

I think modal should be closed when Esc key is pressed. For example. <dialog /> (on web standard) and <Modal /> component in Material-UI is closed with Esc key.

@shibe97
Copy link
Member

shibe97 commented Aug 30, 2021

#26 has proposed an improvement similar to this and including accessibility, so we will consider it together with that.

@Shinyaigeek
Copy link
Contributor Author

@shibe97 sounds good. Although there are several ways, rebasing #26 with this branch or closing this PR, I follow your decision.

@shibe97 shibe97 closed this Sep 15, 2021
@Shinyaigeek Shinyaigeek deleted the feature/close-with-esc branch September 15, 2021 06:41
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.

None yet

2 participants