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

Fix/sof-6587 #16

Merged
merged 3 commits into from Aug 23, 2023
Merged

Fix/sof-6587 #16

merged 3 commits into from Aug 23, 2023

Conversation

VsevolodX
Copy link

Backspace default behavior of deleting stuff was blocked by event listeners added to whole document, I changed addition of them only to the threejs-editor, thus limiting their scope.

@VsevolodX VsevolodX marked this pull request as ready for review August 22, 2023 00:23
Comment on lines 102 to 106
case 'backspace':

event.preventDefault(); // prevent browser back
// event.preventDefault(); // prevent browser back -- this is no longer an issue since 2016

// fall-through

Choose a reason for hiding this comment

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

If we're not using this case, can it be removed then?

Copy link
Author

Choose a reason for hiding this comment

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

That was my first idea. But then I thought what if somebody does use this. I tried to remove all event listeners on modal close -- to no avail.

@VsevolodX VsevolodX merged commit c426ff1 into dev Aug 23, 2023
12 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
3 participants