Skip to content

fix(keyboard): return to the files when Right leaves the sidebar - #1088

Open
spandan11106 wants to merge 1 commit into
lgse:mainfrom
spandan11106:fix/1053-sidebar-right-to-files
Open

spandan11106 wants to merge 1 commit into
lgse:mainfrom
spandan11106:fix/1053-sidebar-right-to-files

Conversation

@spandan11106

Copy link
Copy Markdown
Collaborator

Description

Entering the sidebar from the navigation header stored the focused header button as
the sidebar's return target, so Right restored Back/Refresh instead of the listing.
Once keyboard focus had left the file view, the only way back into it was the mouse.

A return target is now remembered only while the file view holds focus; otherwise Right
falls back to the active item, which is what the file chooser already did. Affects List,
Icons, and Columns.

Visual evidence

Pending — the change is a keyboard-focus ring, and I could not upload stills from this
session. Reproducible by hand with the steps below.

How to test

  1. Open a nested folder in List (Icons and Columns behave the same) with the sidebar shown.
  2. Press Alt+Up to go to the parent, then Home and Up until focus is on the header Back
    button rather than a filename.
  3. Press Left until the sidebar has focus.
  4. Press Right.

Expected result: focus returns to the file list and the arrow keys move between files
again. Before this change, Right focused Back (List/Icons) or Refresh (Columns), and the
listing could only be re-entered with the mouse. Left from a focused file row into the
sidebar still returns to that exact row.

Related issue

Closes #1053

Entering the sidebar from the navigation header stored the focused header
button as the return target, so Right restored Back/Refresh instead of the
listing and the file view could only be re-entered with the mouse.

Remember a return target only while the file view holds focus; otherwise
Right falls back to the active item, matching the file chooser.
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.

fix(keyboard): Right from sidebar does not re-enter the folder list after Alt+Up

1 participant