Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[A11y] - Switching image using the Enter key #1201

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

Galpittel
Copy link
Collaborator

Add the ability to switch the displayed image in the gallery by pressing the Enter key on one of the thumbnails.

Add the ability to switch the displayed image in the gallery by pressing the Enter key on one of the thumbnails.
@Galpittel Galpittel requested a review from liatv March 13, 2024 09:14
@Galpittel Galpittel merged commit ec8eb3b into master Mar 13, 2024
7 checks passed
@Galpittel Galpittel deleted the click-on-image-using-Enter-key branch March 13, 2024 12:16
@@ -96,6 +96,11 @@ class NavigationPanel extends React.Component {
style={itemStyle}
onClick={() => this.scrollToThumbnail(idx)}
tabIndex={0}
onKeyDown={(e) => {
if (e.key === 'Enter') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to check with keyCode
also - we need to enter this code to V4 as well so it would be in TPA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants