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

Using Ctrl-C, Ctrl-V in ROM contents window also copies and pastes diagram components #126

Closed
shuyuan-liu opened this issue Jan 28, 2022 · 5 comments
Labels

Comments

@shuyuan-liu
Copy link
Contributor

Issie version: v2.4.0

Reproduced on OS:

  • Windows 11 21H2 build 22000.438
  • Windows 11 21H2 build 22000.466
  • Windows 10 21H2

Steps to reproduce:

  • Place a ROM in a diagram;
  • Select the ROM and in the Properties tab click on 'View/Edit memory content';
  • Press Ctrl-C then Ctrl-V;
  • Close the memory contents window;
  • Now there is a "new" ROM waiting to be pasted under the mouse cursor.

I believe this is a significant issue because it's not uncommon to need to copy & paste instructions in a ROM, and although the result is harmless it's nevertheless annoying.

@tomcl
Copy link
Owner

tomcl commented Jan 30, 2022

I will add this to the "good to do this Summer" issues. Or maybe for Spring groups going beyond their remit.

in fact as I understand it, this is just that diagram copy and paste is happening when not interacting with diagram - that can be fixed by filtering the key commands to sheet so they don't happen. It is slightly complex because of the way that electron intercepts cut and paste so Sheet gets these some weird way, which is probably why this happens. In addition Sheet model is isolated from the UI model - so info cannot be picked up directly. This can be changed (and should be) but the type refactoring is major.

@tomcl tomcl added the bug Something isn't working label Jan 30, 2022
@shuyuan-liu
Copy link
Contributor Author

Thanks @tomcl for the reply. I'll add that typing _ (shift + -) and + (shift + =) in a pop-up window will cause the underlying diagram to zoom, probably caused by the same issue.

@tomcl
Copy link
Owner

tomcl commented Feb 4, 2022

Closed in v2.4.3

@tomcl tomcl closed this as completed Feb 4, 2022
@tomcl tomcl reopened this Feb 4, 2022
@tomcl
Copy link
Owner

tomcl commented Feb 4, 2022

fix broke something else.

@tomcl tomcl added done! and removed bug Something isn't working labels Feb 6, 2022
@tomcl
Copy link
Owner

tomcl commented Feb 6, 2022

Closed (for real) v2.4.3 tag 2.4.3.1

@tomcl tomcl closed this as completed Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants