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

Add note about answers branch #3

Open
jkup opened this issue Nov 22, 2016 · 1 comment
Open

Add note about answers branch #3

jkup opened this issue Nov 22, 2016 · 1 comment

Comments

@jkup
Copy link
Owner

jkup commented Nov 22, 2016

Add a note to the documentation about how to use the answers branch.

@AliEl4eikh
Copy link

hello, when we open the modal as we click on the modal button, the active element in this case is the modal button itself so i think we need to add an keydown (Escape) event listener to this modal line to be able to close the modal if we press the escape button before we press tab to focus on the modal.

let previousFocusedElement = document.activeElement; previousFocusedElement.addEventListener("keydown", (event) => { if (event.keyCode === 27) close(); });

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