mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 03:41:56 +02:00
[ui] Restrain the "copy/paste nodes" shortcuts to the GraphEditor
If a Ctrl+C or Ctrl+V shortcut is performed outside the GraphEditor, the performed action should not be a copy or a paste of the nodes, but the own copy/paste of the current element (e.g. if a Ctrl+C is made on on the NodeEditor, then the copied element should be the one selected in the NodeEditor, not the currently selected node).
This commit is contained in:
parent
0f5ffd7d7c
commit
58784fb6ff
2 changed files with 4 additions and 2 deletions
|
@ -114,6 +114,10 @@ Item {
|
|||
uigraph.removeNodes(uigraph.selectedNodes)
|
||||
if (event.key === Qt.Key_D)
|
||||
duplicateNode(event.modifiers == Qt.AltModifier)
|
||||
if (event.key === Qt.Key_C && event.modifiers == Qt.ControlModifier)
|
||||
copyNodes()
|
||||
if (event.key === Qt.Key_V && event.modifiers == Qt.ControlModifier)
|
||||
pasteNodes()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue