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

Conversation

cbentejac
Copy link
Contributor

Description

This PR fixes an issue introduced with #1758 which overrides any Ctrl+C / Ctrl+V shortcut with a "Copy node(s)" / "Paste node(s)", no matter which part of Meshroom has the focus or which element is currently selected.

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. For example, if the currently selected element is a text field in the NodeEditor, then using Ctrl+C shoud trigger that text field's own copy function and copy its content to the clipboard; "Copy node(s)" and "Paste node(s)" should only be called when Ctrl+C and Ctrl+V are performed within 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).
@fabiencastan fabiencastan added this to the Meshroom 2022.1.0 milestone Sep 28, 2022
@fabiencastan fabiencastan merged commit 5079bba into develop Sep 28, 2022
@fabiencastan fabiencastan deleted the fix/copyPasteGraphEditor branch September 28, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants