We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added this code to close the video modal on pressing escape key:
jQuery(document).keyup(function(e) { if (e.keyCode == 27) { // Esc jQuery(".modal-video-close-btn.js-modal-video-dismiss-btn").trigger("click") } });
The text was updated successfully, but these errors were encountered:
@drjjw good snippet!
I second this suggestion to have the escape key close the modal if opened; seems like a good accessibility improvement.
Sorry, something went wrong.
@drjjw @markmercier
Thanks! that's nice idea. I'll take it into consideration.
1000-x-t30
Successfully merging a pull request may close this issue.
I added this code to close the video modal on pressing escape key:
jQuery(document).keyup(function(e) { if (e.keyCode == 27) { // Esc jQuery(".modal-video-close-btn.js-modal-video-dismiss-btn").trigger("click") } });
The text was updated successfully, but these errors were encountered: