From 56ff9a6a40ad670de0bcb95a9a5f771e16cde296 Mon Sep 17 00:00:00 2001 From: usmanonazim Date: Fri, 21 Jun 2024 12:00:30 +0100 Subject: [PATCH] fix: enable keyboard controls on menu items --- src/js/menu/menu-item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/menu/menu-item.js b/src/js/menu/menu-item.js index dcee1bca09..99accf6d46 100644 --- a/src/js/menu/menu-item.js +++ b/src/js/menu/menu-item.js @@ -94,7 +94,7 @@ class MenuItem extends ClickableComponent { * @listens keydown */ handleKeyDown(event) { - if (['Tab', 'Escape', 'ArrowUp', 'ArrowLeft', 'ArrowRight', 'ArrowDown'].includes(event.key)) { + if (!['Tab', 'Escape', 'ArrowUp', 'ArrowLeft', 'ArrowRight', 'ArrowDown'].includes(event.key)) { // Pass keydown handling up for unused keys super.handleKeyDown(event); }