aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts2
1 files changed, 2 insertions, 0 deletions
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<Action>,
+ 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<Action>,
+ autoHide: true,
disableShortcuts: false,
};
}