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

Editor: Fixed broken object delete shortcuts #12820

Merged
merged 1 commit into from
Dec 7, 2017

Conversation

TyLindberg
Copy link
Contributor

Now both backspace and delete will prompt to delete an object. Previously backspace would fall through to the logic of delete in the switch statement, so I made that explicit in a comment to avoid confusion.

Now both backspace and delete will cause prompt to delete an object.

event.preventDefault(); // prevent browser back

break;
// fall-through
Copy link
Owner

@mrdoob mrdoob Dec 7, 2017

Choose a reason for hiding this comment

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

Oh, sorry, I thought it was a bug 😇

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries! I should have thrown in a comment when I noticed that in the initial code.

@mrdoob
Copy link
Owner

mrdoob commented Dec 7, 2017

Ops!

@mrdoob mrdoob merged commit dcf6a19 into mrdoob:dev Dec 7, 2017
@mrdoob
Copy link
Owner

mrdoob commented Dec 7, 2017

Thanks!

@TyLindberg
Copy link
Contributor Author

Thank you!

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