Skip to content

Commit

Permalink
dev: Treat space and enter as clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
lscambo13 committed Jan 29, 2024
1 parent 2d18aaa commit 189be26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js_modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function addEventListenerOnTag(tagName, event, func) {
}

export function clickToEnter(event) {
if (event.key === 'Enter') event.target.click();
if (event.key === 'Enter' || event.key === ' ') event.target.click();
};

export function fetchBookmarks() {
Expand Down

0 comments on commit 189be26

Please sign in to comment.