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

Remove buggy ctrl+x to cut entity to paste it right away #759

Merged
merged 5 commits into from
Sep 8, 2024

Conversation

vincentfretin
Copy link
Contributor

Remove buggy ctrl+x to cut entity to paste it right away, because the entity is removed from the DOM, some components like position/rotation/scale reset to their default value.
If we really want to fix it, we should really keep an object representation of the deleted entity so that it could use createEntity(definition) when we press ctrl+v in this case instead of cloneEntity, but we currently don't support creating children on createEntity.
To be honest, I don't think it's worth to keep that feature, and I really don't understand what was the purpose of it in the first place.
We could keep it as way to remove an entity without confirmation, in this case we remove the AFRAME.INSPECTOR.entityToCopy assigment here and we reflect that purpose in the help modal. Thoughts?

Note that the ctrl+x,c,v shortcuts only worked on Windows since a long time, and were fixed for Linux and macOS only recently #729

@vincentfretin
Copy link
Contributor Author

I found it weird we had "supr" here, in English keyboard it's Delete right. On my French keyboard, it's Suppr (two p) stands for Supprimer.

@dmarcos
Copy link
Member

dmarcos commented Sep 8, 2024

Thank you!

@dmarcos dmarcos merged commit 6c78f69 into aframevr:master Sep 8, 2024
1 check passed
@vincentfretin vincentfretin deleted the remove-buggy-cut-entity branch September 8, 2024 08:38
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