Skip to content

Twenty Twenty (1.2) Horizontal menu - Submenu - #49950 #6150

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Closed
wants to merge 18 commits into from
PrevPrevious commit
Next Next commit
Another Single Quote
  • Loading branch information
@Rcreators
Rcreators committedFeb 21, 2024
commit 1f2e58195cf0ed042b6cb8bdffc18cd23d359468
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentytwenty/assets/js/index.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -473,7 +473,7 @@ twentytwenty.primaryMenu = {
var isEscape = false;

// Find is pressed key is esc.
if ("key" in e) {
if ('key' in e) {
isEscape = (e.key === 'Escape' || e.key === 'Esc');
} else {
isEscape = (e.keyCode === 27);
Expand Down