mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fix(client): tree operations no longer working due to loss of focus
This commit is contained in:
@@ -76,8 +76,10 @@ export default abstract class TypeWidget extends NoteContextAwareWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore focus to the editor when switching tabs.
|
// Restore focus to the editor when switching tabs, but only if the note tree is not already focused.
|
||||||
this.focus();
|
if (!document.activeElement?.classList.contains("fancytree-title")) {
|
||||||
|
this.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user