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

[DYN-7362] bugfix: prevent dynamo workspace paste execution when out of focus #15523

Conversation

Enzo707
Copy link
Contributor

@Enzo707 Enzo707 commented Oct 3, 2024

oXo3IwY07c

Purpose

ref.: [7362]

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Include an early return within DynamoView OnRequestPaste interrupting the execution when workspace is out of focus.

Reviewers

@RobertGlobant20
@QilongTang

@github-actions github-actions bot changed the title [7362] bugfix: prevent dynamo workspace paste execution when out of focus DYN-: [7362] bugfix: prevent dynamo workspace paste execution when out of focus Oct 3, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7362

@Enzo707 Enzo707 changed the title DYN-: [7362] bugfix: prevent dynamo workspace paste execution when out of focus [DYN-7362] bugfix: prevent dynamo workspace paste execution when out of focus Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

UI Smoke Tests

Test: success. 11 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one comment

@@ -239,7 +239,6 @@ internal void RefreshLibraryView(WebView2 browser)
/// <param name="text">text to be added to clipboard</param>
internal void OnCopyToClipboard(string text)
{
dynamoViewModel.Model.ClipBoard.Clear();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added this line in #14998 for fixing the problem of copy/paste when using the mouse (click right copy and then click right paste).
if you remove it, will this produce a side-effect behavior on copy/paste using the mouse?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RobertGlobant20 It doesn't seems to cause any side effect, we manage two different Clipboard the native one and the one which is part of the model for storing the nodes.

@QilongTang QilongTang added this to the 3.4 milestone Oct 9, 2024
@QilongTang QilongTang merged commit 8b9e495 into DynamoDS:master Oct 10, 2024
30 of 31 checks passed
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.

4 participants