diff --git a/js/web-menu.js b/js/web-menu.js index cbe233c..7269201 100644 --- a/js/web-menu.js +++ b/js/web-menu.js @@ -42,6 +42,7 @@ const populateWebMenu = () => { var aWebLink = document.createElement('a'); aWebLink.className = 'webMenuLink'; aWebLink.href = url; + aWebLink.tabIndex = '-1'; // Create an outer div, child of li let webItemDiv = document.createElement('div') @@ -319,6 +320,8 @@ webMenuSearchBox.onkeydown = (event) => { if ((event.key === 'ArrowRight') || (event.key === 'ArrowDown') || (event.key === 'ArrowLeft') || (event.key === 'ArrowUp')) return; + if (event.key === 'Tab') return; + if (event.key === 'Enter' && webItemFocus) { // Run the focused li's callback webItemFocus.callback();