Repository navigation
Home with frozen columns goes to the first unfrozen column (fixes #2044) - #2083
Open
dantebertuzzi wants to merge 1 commit into
Open
dantebertuzzi wants to merge 1 commit into
dantebertuzzi wants to merge 1 commit into
Conversation
…rytold#2044) Home selected column A, which sits in the frozen pane, so the scrolling pane never moved back and the view stayed at the far-away column. Like Excel, Home now lands on the first unfrozen column and scrolls to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
This was referenced Oct 22, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2044.
Cause
Key::Homeincrates/ui-egui/src/grid.rsalways selected column A. With frozen columns, A lives in the frozen pane and is always visible, soensure_visiblehad nothing to scroll: the scrolling pane stayed at the far-away column (e.g. BB) and Home looked like it did nothing.Fix
Like Excel, Home now goes to the first unfrozen column (
freeze.1), the same rule Ctrl+Home already follows, and the pane scrolls back to it. Without frozen panes it still goes to column A.Tests
home_with_frozen_columns_goes_to_the_first_unfrozen_columnincrates/ui-egui/tests/selection_scroll.rs: freeze the first column, Ctrl+Right to CV1, Home → B1 is active and visible; without freeze Home → A1. Fails before the fix, passes after.cargo fmt --check,cargo clippy -p gridcraft-ui-egui --all-targets -D warningsandcargo test -p gridcraft-ui-eguipass.🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Homekey navigation to select the first unfrozen column on the active row.Tests
Homenavigation with and without frozen columns.