From 1663147bc4cada892afa727da7eb839c82a6f7fd Mon Sep 17 00:00:00 2001 From: Darshan-upadhyay1110 Date: Mon, 4 Nov 2024 18:38:56 +0530 Subject: [PATCH] Add 'Tab' support for moving around list entries Signed-off-by: Darshan-upadhyay1110 Change-Id: I21954a8c5c10c6f8f355fd6e4cb6949b2be9824e --- .../src/control/jsdialog/Util.KeyboardListNavigation.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/browser/src/control/jsdialog/Util.KeyboardListNavigation.ts b/browser/src/control/jsdialog/Util.KeyboardListNavigation.ts index 27c006a3de41..d31e7e5aa321 100644 --- a/browser/src/control/jsdialog/Util.KeyboardListNavigation.ts +++ b/browser/src/control/jsdialog/Util.KeyboardListNavigation.ts @@ -28,6 +28,15 @@ function KeyboardListNavigation( moveToFocusableEntry(currentElement, 'previous'); event.preventDefault(); break; + case 'Tab': + if (event.shiftKey) { + moveToFocusableEntry(currentElement, 'previous'); + event.preventDefault(); + } else { + moveToFocusableEntry(currentElement, 'next'); + event.preventDefault(); + } + break; default: break; }