Add shortcuts
Add shortcuts for common actions (new note, delete note, etc)
Status:
| Action | Shortcut |
|---|---|
| New paper note | Command + P |
| New rectangle | Command + R |
| New circle | Command + O |
| Delete note | Delete |
Hi, sorry I don't know where should I write this so Im gonna write it here.
I'm trying to create a keyboard short cut for deleting a selected node, I am kind of lost 😅
this is what I'm trying to do it, and I'm stuck here like how can I access that velo_node_query or is it even possible, reading the doc on bevy didn't really help or I maybe I wasn't looking at the right place
is this even the right approach?
thanks
another question, also what short cuts is good for adding Circle and Rectangle? cmd + c its for copy, cmd + r for Rectangle?
@irfanabliz
Yeah, you have to learn bevy to contribute to velo. There are systems - methods that run in specific order (schedule). Systems work on entities, entities can have any number of components. You can add any query to system. So yeah, on some key press you just check that this entity is selected and despawn it, so your approach looks fine to me.
cmd + c is for copy text/node, cmd + r for rectangle perhaps is fine. I am not sure about which shortcuts are the best, make sure that they don't interfere with basic functionality like copy/pasting, etc.