[ui] GraphEditor: toggle node selected state on Ctrl+click

Closer to the standard behavior of the Ctrl modifier key for selection.
This commit is contained in:
Yann Lanthony 2024-12-09 10:18:48 +01:00
parent 87c0cef605
commit fc85999011

View file

@ -861,7 +861,7 @@ Item {
selectionMode = ItemSelectionModel.Select;
}
if(mouse.modifiers & Qt.ControlModifier) {
selectionMode = ItemSelectionModel.Deselect;
selectionMode = ItemSelectionModel.Toggle;
}
if(mouse.modifiers & Qt.AltModifier) {
uigraph.selectFollowing(node);