Skip to content

Commit

Permalink
Add 'Tab' support for moving around list entries
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I21954a8c5c10c6f8f355fd6e4cb6949b2be9824e
  • Loading branch information
Darshan-upadhyay1110 committed Nov 4, 2024
1 parent 22ee8e1 commit 1663147
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions browser/src/control/jsdialog/Util.KeyboardListNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1663147

Please sign in to comment.