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

keyboard delete key should delete selected object #3

Open
PeterTheOne opened this issue Mar 24, 2017 · 3 comments
Open

keyboard delete key should delete selected object #3

PeterTheOne opened this issue Mar 24, 2017 · 3 comments

Comments

@PeterTheOne
Copy link

No description provided.

@calpa
Copy link

calpa commented Mar 26, 2017

For node object, there is an kill() function. I wonder how to add an eventListener of KeyCodes 46(DELETE) inside the node...
Using subscribe() or other method?

@ncase
Copy link
Owner

ncase commented Mar 26, 2017

How could I have forgotten that! Thanks for the feature request, I'll put it in once I'm done trudging through emails. The only small hiccup I'd have to consider is that the delete key should delete the selected object unless you're typing in a text field

@1000i100
Copy link

i've done that in #20 : when you press delete key, it delete the text of the object. If you press it again (if there is no text for the entity, then it kill it.

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

No branches or pull requests

4 participants