Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui] Restrain the "copy/paste nodes" shortcuts to the GraphEditor #1782

Merged
merged 1 commit into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions meshroom/ui/qml/GraphEditor/GraphEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions meshroom/ui/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ ApplicationWindow {
return s
}
text: "Copy Node" + (_reconstruction.selectedNodes.count > 1 ? "s " : " ")
shortcut: "Ctrl+C"
enabled: _reconstruction.selectedNodes.count > 0
onTriggered: graphEditor.copyNodes()

Expand All @@ -453,7 +452,6 @@ ApplicationWindow {

property string tooltip: "Paste the clipboard content to the scene if it contains valid nodes"
text: "Paste Node(s)"
shortcut: "Ctrl+V"
onTriggered: graphEditor.pasteNodes()
}

Expand Down