Skip to content

Commit

Permalink
fix: kb: expand selection in bookmark sub-panel too
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Jan 26, 2025
1 parent 08c5ebb commit 88ad639
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/keybindings.actions.ts
Original file line number Diff line number Diff line change
@@ -660,7 +660,14 @@ function onKeySelect(dir: number): void {
function onKeySelectExpand(dir: number): void {
if (!dir) return
Sidebar.updateBounds()
const activePanel = Sidebar.panelsById[Sidebar.activePanelId]
let activePanel = Sidebar.panelsById[Sidebar.activePanelId]
if (
Sidebar.subPanelActive &&
Sidebar.subPanelType === SubPanelType.Bookmarks &&
Sidebar.subPanels.bookmarks
) {
activePanel = Sidebar.subPanels.bookmarks
}
if (!activePanel) return
if (!activePanel.bounds?.length) return

0 comments on commit 88ad639

Please sign in to comment.