mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-15 01:32:17 +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.magnifiedNodeSizeAtom = getSettingsKeyAtom("window:magnifiedblocksize");
|
||||||
|
|
||||||
this.focusedNode = atom((get) => {
|
this.focusedNode = atom((get) => {
|
||||||
|
const ephemeralNode = get(this.ephemeralNode);
|
||||||
const treeState = get(this.treeStateAtom);
|
const treeState = get(this.treeStateAtom);
|
||||||
|
if (ephemeralNode) {
|
||||||
|
return ephemeralNode;
|
||||||
|
}
|
||||||
if (treeState.focusedNodeId == null) {
|
if (treeState.focusedNodeId == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user