Skip to content

Commit

Permalink
[ui] GraphEditor: Fixed Key handling for Node creation Menu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
waaake committed Dec 19, 2024
1 parent 6e99f9d commit b31da19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meshroom/ui/qml/GraphEditor/GraphEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ Item {
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
onClicked: newNodeMenu.createNode(modelData)

Expand Down

0 comments on commit b31da19

Please sign in to comment.