in packages/core/src/shortcuts/QuickSelection.ts [26:51]
handler(context) {
const operation = context?.workspace.operation
if (operation) {
const tree = operation.tree
const selection = operation.selection
const selectedNode = tree.findById(selection.last)
if (selectedNode) {
const previousNode = selectedNode.previous
if (previousNode) {
const bottom = findBottomLastChild(previousNode)
if (bottom) {
selection.select(bottom)
} else {
selection.select(previousNode)
}
} else if (selectedNode.parent) {
selection.select(selectedNode.parent)
} else {
const bottom = findBottomLastChild(selectedNode.lastChild)
if (bottom) {
selection.select(bottom)
}
}
}
}
},