From 81c9e96bf3483f5746f69bcea669c356f37b078c Mon Sep 17 00:00:00 2001 From: seve12 Date: Mon, 4 Aug 2025 17:45:53 +0300 Subject: [PATCH] Improves accessibility by disabling custom Tab handling Comments out custom Tab key behavior to allow default browser focus movement, enhancing accessibility for keyboard users and assistive technologies. --- client/components/lists/listBody.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 05fabd4a2..59dd4ab22 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -314,7 +314,8 @@ BlazeComponent.extendComponent({ // Pressing Tab should open the form of the next column, and Maj+Tab go // in the reverse order } else if (evt.keyCode === 9) { - evt.preventDefault(); + // Prevent custom focus movement on Tab key for accessibility + // evt.preventDefault(); const isReverse = evt.shiftKey; const list = $(`#js-list-${this.data().listId}`); const listSelector = '.js-list:not(.js-list-composer)'; @@ -414,10 +415,11 @@ BlazeComponent.extendComponent({ // event propagation to prevent the card from submitting (on `Enter`) or // going on the next column (on `Tab`). onKeydown(evt, commands) { - if (evt.keyCode === 9 || evt.keyCode === 13) { - evt.stopPropagation(); - return commands.KEY_ENTER; - } + // Prevent custom focus movement on Tab key for accessibility + // if (evt.keyCode === 9 || evt.keyCode === 13) { + // evt.stopPropagation(); + // return commands.KEY_ENTER; + //} return null; }, },