Tab Switcher: Preserve the selected position after a tab is closed #22791
aborg-dev
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! First time contributor here :)
I have a suggestion about the behavior of
tab_switcher
, specifically, which tab is selected (highlighted) after the currently selected tab is closed with a keyboard shortcut<Ctrl-Backspace>
.Current behavior
At the moment, after closing a tab, the selection jumps to the first item in the list.
before.webm
Suggested behavior
I suggest to preserve the selected position in the list - this will make it easier to close multiple old tabs (as they are already sorted that way) with consecutive
<Ctrl-Backspace>
. I also think this behavior is more intuitive.after.webm
Implementation
You can find the implementation of the suggested behavior in this PR: #22861. I would love to continue working on it if this change is welcome.
Beta Was this translation helpful? Give feedback.
All reactions