Fixed root bug for start node, fixed ctrl+l
This commit is contained in:
parent
26fe670965
commit
8f15664b88
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue