From f335593f9bfbd1eb3db939b23af799709d5d8104 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 7 Jul 2022 18:06:38 +1000 Subject: Add auto-hiding of ancestors on leaf-click --- src/lib.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index 7372cde..faec861 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -111,6 +111,7 @@ export type UiOptions = { searchJumpMode: boolean, tutorialSkip: boolean, disabledActions: Set, + autoHide: boolean, // Upon a leaf-click fail, hide an ancestor and try again disableShortcuts: boolean, }; // Option defaults @@ -174,6 +175,7 @@ export function getDefaultUiOpts(lytOpts: LayoutOptions): UiOptions { searchJumpMode: false, tutorialSkip: false, disabledActions: new Set() as Set, + autoHide: true, disableShortcuts: false, }; } -- cgit v1.2.3