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

Allow navigating down from header cells, as well as support cmd/ctrl + arrow keys #10777

Merged
merged 11 commits into from
Mar 11, 2025

Conversation

abidlabs
Copy link
Member

@abidlabs abidlabs commented Mar 10, 2025

There was a small issue: if you used the keyboard to navigate to the header cell, you couldn't navigate down to the regular table cells.

Before:

Screen.Recording.2025-03-10.at.1.51.53.PM.mov

Fixed:

Screen.Recording.2025-03-10.at.1.52.01.PM.mov

I also added support for navigating with cmd/ctrl+arrow keys, you can navigate through the dataframe pretty easily now:

Screen.Recording.2025-03-10.at.5.35.24.PM.mov

Closes: #7610 (the issue mentions a few bugs, which I've confirmed resolved. The issue also mentions home/end keys, which I'm not including in this PR, as they do not add any new functionality that cmd/ctrl+arrow keys already provide).

@abidlabs abidlabs requested a review from hannahblair March 10, 2025 20:52
@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Mar 10, 2025

🪼 branch checks and previews

Name Status URL
Spaces failed! Details
Storybook ready! Storybook preview
🦄 Changes detected! Details

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Mar 10, 2025

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/dataframe minor
gradio minor
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Allow navigating down from header cells, as well as support cmd/ctrl + arrow keys

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@abidlabs abidlabs marked this pull request as draft March 11, 2025 00:28
@abidlabs abidlabs changed the title Allow navigating down from header cells Allow navigating down from header cells, as well as support cmd/ctrl + arrow keys Mar 11, 2025
@abidlabs abidlabs marked this pull request as ready for review March 11, 2025 00:37
@hannahblair
Copy link
Collaborator

Header issue fixed!

I also added support for navigating with cmd/ctrl+arrow keys, you can navigate through the dataframe pretty easily now:

Just to confirm, the new cmd/ctrl + arrow functionality is specifically jump navigation right? Works great.

Copy link
Collaborator

@hannahblair hannahblair left a comment

Choose a reason for hiding this comment

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

thanks @abidlabs!

@hannahblair
Copy link
Collaborator

I'm gonna go ahead and merge this in, hope that's okay!

@hannahblair hannahblair merged commit 3b48367 into main Mar 11, 2025
27 checks passed
@hannahblair hannahblair deleted the more-keyboard branch March 11, 2025 09:57
@abidlabs
Copy link
Member Author

Yes great thanks @hannahblair!

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.

Improve keyboard accessibility for gr.DataFrame
3 participants