[ui] GraphEditor: Fixed Key handling for Node creation Menu

Keys.AfterItem as the priority ensures the Item's own key events are handled before Forwarding it to specified items. This handles all defined Enter and Return key presses
This commit is contained in:
waaake 2024-12-19 06:05:11 +01:00
parent 6e99f9daeb
commit b31da19e66

View file

@ -293,6 +293,8 @@ Item {
searchBar.forceActiveFocus() searchBar.forceActiveFocus()
} }
} }
// Set the priority ordering of the keys to be Item's own Key Handling > ForwardTo
Keys.priority: Keys.AfterItem;
// Create node on mouse click // Create node on mouse click
onClicked: newNodeMenu.createNode(modelData) onClicked: newNodeMenu.createNode(modelData)