Skip to content

Commit

Permalink
close menu on escape
Browse files Browse the repository at this point in the history
  • Loading branch information
nrchtct committed Dec 11, 2023
1 parent c8e9221 commit 886f55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
if (e.key === "Escape") {
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
history.pushState("", document.title, window.location.pathname);
if (menuState) toggleMenu();
}
}
setFontSize();
Expand Down

0 comments on commit 886f55d

Please sign in to comment.