Skip to content

Commit 3734581

Browse files
committed
WIP
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
1 parent 6a1e73f commit 3734581

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/power-tree.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,16 @@ export default {
218218
if (!clickedNode) {
219219
return null
220220
}
221+
221222
const multiselectKeys = Array.isArray(this.multiselectKey) ? this.multiselectKey : [this.multiselectKey]
222223
const multiselectKeyIsPressed = event && !!multiselectKeys.find(key => event[key])
224+
// const shiftKeyIsPressed = event && event.shiftKey && this.allowMultiselect
225+
223226
addToSelection = (multiselectKeyIsPressed || addToSelection) && this.allowMultiselect
224227

225-
const selectedNode = this.getNode(path)
226228
const newNodes = this.copy(this.currentValue)
229+
// const newSelectedNodes = this.getSelected(newNodes)
230+
227231
const shiftSelectionMode = this.allowMultiselect && event && event.shiftKey && this.lastSelectedNode
228232
const selectedNodes = []
229233
let shiftSelectionStarted = false

0 commit comments

Comments
 (0)