learn-a11y icon indicating copy to clipboard operation
learn-a11y copied to clipboard

Add note about answers branch

Open jkup opened this issue 8 years ago • 1 comments

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

jkup avatar Nov 22 '16 07:11 jkup

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(); });

AliEl4eikh avatar Mar 19 '21 17:03 AliEl4eikh