diff --git a/static/js/node_store.mjs b/static/js/node_store.mjs index 43f40f3..e57503e 100644 --- a/static/js/node_store.mjs +++ b/static/js/node_store.mjs @@ -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 } diff --git a/static/js/notes2.mjs b/static/js/notes2.mjs index 9eb9503..58ce96e 100644 --- a/static/js/notes2.mjs +++ b/static/js/notes2.mjs @@ -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.