files-community / files-community/Files

Bug: Pressing a letter doesn't scroll to the correct position in details layout after changing size

Open
#15,955 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
45.4k
Forks
2.9k
Avg merge
19h 7m
Merged PRs (30d)
62

Description

### Description

When in a folder that has more items than will fit in the window, if I press a letter that is out of view, the correct item is selected but not displayed. The window does not scroll to the correct position.

Here's an example when I first press the 'W' key and then the 'T' key.

![example](https://github.com/user-attachments/assets/f2442c7a-4337-4100-a83d-b13cc12b6363)

### Steps To Reproduce

1. Open Files app to a folder with more items than will fit in the current window size.
2. Switch to another size on details layout
3. Press a letter key for an item that it out of view.

### Requirements

Correct item should be selected and in view.

### Files Version

v3.6

### Windows Version

Windows 11 22H2 22621.3958

### Log File

[debug.log](https://github.com/user-attachments/files/16505399/debug.log)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Files app using a folder that exceeds the window, then switch to another details-layout size and press letters for out-of-view items. Trace the details layout's keyboard selection and scrolling behavior; done means the selected item is also brought into view after the size change.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.