diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-10 11:52:52 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-10 11:52:52 +1000 |
| commit | 7eda018e411d81c79a6c44f609e103409a25539e (patch) | |
| tree | 737013fbe2ef9a7d9e50092e5d69261e3eb70978 /src/App.vue | |
| parent | 6406d16dfe663bce1c6751888eb39bd6a82bf598 (diff) | |
Remove search-focus upon new actions
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue index ba13827..2b24c6e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -176,6 +176,7 @@ export default defineComponent({ methods: { // For tile expand/collapse events onLeafClick(layoutNode: LayoutNode){ + this.setLastFocused(null); // If clicking child of overflowing active-root if (this.overflownRoot){ layoutNode.failFlag = !layoutNode.failFlag; // Triggers failure animation @@ -222,6 +223,7 @@ export default defineComponent({ } }, onNonleafClick(layoutNode: LayoutNode){ + this.setLastFocused(null); let success = tryLayout(this.activeRoot, this.tileAreaPos, this.tileAreaDims, this.lytOpts, { allowCollapse: false, chg: {type: 'collapse', node: layoutNode, tolMap: this.tolMap}, @@ -250,6 +252,7 @@ export default defineComponent({ }, // For expand-to-view and ancestry-bar events onLeafClickHeld(layoutNode: LayoutNode){ + this.setLastFocused(null); if (layoutNode == this.activeRoot){ this.onLeafClick(layoutNode); return; @@ -297,6 +300,7 @@ export default defineComponent({ } }, onNonleafClickHeld(layoutNode: LayoutNode){ + this.setLastFocused(null); if (layoutNode == this.activeRoot){ console.log('Ignored expand-to-view on active-root node'); return; @@ -307,6 +311,7 @@ export default defineComponent({ {allowCollapse: true, layoutMap: this.layoutMap}); }, onDetachedAncestorClick(layoutNode: LayoutNode){ + this.setLastFocused(null); LayoutNode.showDownward(layoutNode); this.activeRoot = layoutNode; tryLayout(this.activeRoot, this.tileAreaPos, this.tileAreaDims, this.lytOpts, |
