Skip to content

Commit

Permalink
Accessibility: Add Enter key support for back button navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
nwanduka authored Jul 31, 2024
1 parent fe854d3 commit cbe7931
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/dev-workbench/workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ $('#goBack').click(function() {
window.history.back();
});

// Keydown event for the back button
$('#goBack').keydown(function(e) {
if (e.keyCode === 13) {
window.history.back();
}
});

// initialize Step 1
function dataSelect() {
$('.navbar-brand').text(' Workbench - Step 1');
Expand Down

0 comments on commit cbe7931

Please sign in to comment.