diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-07 18:06:38 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-07 18:27:16 +1000 |
| commit | f335593f9bfbd1eb3db939b23af799709d5d8104 (patch) | |
| tree | b4cc01842407ef1fd8743e4e54aab0b7b6fa7e4b /src/lib.ts | |
| parent | 716c132b15f3e37a5e0456e65406122324821047 (diff) | |
Add auto-hiding of ancestors on leaf-click
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, }; } |
