Skip to content

Commit

Permalink
Refactored code using the deprecated Window: Event Property (#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarimar authored Apr 17, 2024
1 parent 5326df8 commit 6d05915
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/current-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@ function viewAllEventHandler(e) {
//event handler for keyboard users to click spans when focused
function tabFocusedKeyDownHandler(e) {
// if user is using tab index and keys space or enter on item that needs to be clicked, it will be clicked
if ((event.key === "Enter" || event.key === "Spacebar" || event.key === " ") && document.activeElement.getAttribute("aria-label")) {
if ((e.key === "Enter" || e.key === "Spacebar" || e.key === " ") && document.activeElement.getAttribute("aria-label")) {
document.activeElement.click()
}

}
// shows filters popup on moble
function showFiltersEventHandler(e) {
Expand Down

0 comments on commit 6d05915

Please sign in to comment.