Fixed root bug for start node, fixed ctrl+l

This commit is contained in:
Magnus Åhall 2025-02-09 19:15:46 +01:00
parent 26fe670965
commit 8f15664b88
2 changed files with 5 additions and 1 deletions

View file

@ -303,7 +303,7 @@ export class NodeStore {
.transaction('nodes', 'readonly')
.objectStore('nodes')
if (node.ParentUUID === ROOT_NODE) {
if (node.UUID === ROOT_NODE || node.ParentUUID === ROOT_NODE) {
resolve(accumulated)
return
}

View file

@ -234,6 +234,10 @@ class Tree extends Component {
const n = this.selectedNode
const Space = ' '
// This handler would otherwise react to stuff like Ctrl+L.
if (event.ctrlKey || event.altKey)
return
switch (event.key) {
// Space and enter is toggling expansion.
// Holding shift down does it recursively.