mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-21 02:27:15 +02:00
[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:
parent
6e99f9daeb
commit
b31da19e66
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue