Skip to content
Snippets Groups Projects
Commit 5f2022e0 authored by alexisben's avatar alexisben
Browse files

Merge branch 'note-fix' of github.com:noesya/osuny-hugo-theme-aaa into note-fix

parents 02cd875d 6dc43392
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ class Note {
});
}
a11yDesactivation () {
a11yDisabling () {
this.closeWithKeyboard = (event) => {
if (event.keyCode === 27 || event.key === 'Escape' || event.key === 'Tab' || event.keyCode === 9) {
this.deactivateAllNotes();
......@@ -55,7 +55,7 @@ class Note {
document.addEventListener('click', this.closeWithClick);
}
removeA11yDesactivation() {
removeA11yDisabling () {
window.removeEventListener('keydown', this.closeWithKeyboard);
document.removeEventListener('click', this.closeWithClick);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment