Fix: onKeySwitchToPrevPanel() should switch instead of only activate#2264
Merged
Fix: onKeySwitchToPrevPanel() should switch instead of only activate#2264
Conversation
9801f95 to
0401464
Compare
Owner
|
Thanks |
cnnrro
added a commit
to cnnrro/sidebery
that referenced
this pull request
Feb 8, 2026
cnnrro
added a commit
to cnnrro/sidebery
that referenced
this pull request
Feb 8, 2026
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.
Fix: onKeySwitchToPrevPanel() should switch instead of only activate
In the "Switching between panels" settings, only "Switch to previously active panel" seems activate the destination panel, rather than switching to it. This means the user's setting for "Activate last active tab on panel switching" won't be respected.
This commit creates consistency in these hotkeys.
Switch to {next, previous} panel
Calls
Sidebar.switchPanelwhich in turn should callSidebar.switchToPanelwhich callsSidebar.activatePaneland continues on to respectSettings.state.activateLastTabOnPanelSwitchingand may callTabs.activateLastActiveTabOf.Switch to {first, ..., tenth} panel
Likewise calls
Sidebar.switchToPanelwhich callsSidebar.activatePaneland continues on to respectSettings.state.activateLastTabOnPanelSwitchingand may callTabs.activateLastActiveTabOf.Switch to previously active panel
Only calls
Sidebar.activatePaneldirectly, and then never has the opportunity to followSettings.state.activateLastTabOnPanelSwitching.Resolution
To create consistency across these hotkeys, update the call from
Sidebar.activatePaneltoSidebar.switchToPanelfor "Switch to previously active panel".