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
Navigating the changed files sidebar with keyboard down-arrow loses focus if scrolling is required #6845
Comments
This seems to be the case. I tried rolling back this set of changes to see if the issue could still be reproduced and I could not. I have noticed that if you select a row in the list so that it is highlighted and in focus, then scroll so that it is no longer on screen, and scroll back, it will no longer be in focus despite still being the selection. I think something similar to this is occurring when using the arrow key to select a row that is off view. Combined with Any ideas on how to go about the prior would certainly be appreciated. I will continue looking into this in the mean time. |
This also applies to the History list. Scrolling gets eventually gets stuck if you hold down either the |
The selected file is blurred even if you scroll the list with the mousewheel, so this is not specific to using the arrow keys in particular (it's just more noticable). |
Fix arrow key navigation of Changes and History lists (#6845)
Description
If you have enough changed files in your repository to have a scrollbar in the "Changed files" viewport on the left, you can no longer navigate the entire list of changes using only the keyboard arrows.
Once you reach a point where the list requires scrolling, the focus is stolen from the changed files and refocuses on the scrollbar itself. Subsequent up/down arrow keystrokes now only scroll the viewport, and do not select changed files nor show their diffs.
You have to press TAB, or click on a file with the mouse, to regain focus.
This just changed in the 1.6.2 update.
Version
Steps to Reproduce
Open a repository with enough changed files to require scrolling in the file list viewport on the left. Alternatively, resize the GitHub Desktop height to force scrolling with fewer files.
Click on the first changed file on the left.
Press Down Arrow on the keyboard enough times to reach the bottom of the viewport and require scrolling.
Expected Behavior
The viewport should scroll without the current file/diff losing focus. Continuing to press Down Arrow should navigate through the remaining files.
Actual Behavior
Focus is stolen by the scrollbar itself. The keyboard arrow keys now only scroll the viewport and no longer navigate the list of files.
Additional Information
The text was updated successfully, but these errors were encountered: