mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-13 01:12:01 +01:00
Fix keybindings not working for ephemeral nodes (#1678)
This commit is contained in:
parent
e388128010
commit
a219ea5c9b
@ -283,7 +283,11 @@ export class LayoutModel {
|
||||
this.magnifiedNodeSizeAtom = getSettingsKeyAtom("window:magnifiedblocksize");
|
||||
|
||||
this.focusedNode = atom((get) => {
|
||||
const ephemeralNode = get(this.ephemeralNode);
|
||||
const treeState = get(this.treeStateAtom);
|
||||
if (ephemeralNode) {
|
||||
return ephemeralNode;
|
||||
}
|
||||
if (treeState.focusedNodeId == null) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user