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

Add shortcuts #157

Open
Dimchikkk opened this issue Jun 18, 2023 · 3 comments
Open

Add shortcuts #157

Dimchikkk opened this issue Jun 18, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@Dimchikkk
Copy link
Owner

Dimchikkk commented Jun 18, 2023

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
@Dimchikkk Dimchikkk added the good first issue Good for newcomers label Jun 18, 2023
@ikorason
Copy link

ikorason commented Oct 2, 2023

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

image

is this even the right approach?

thanks

@ikorason
Copy link

ikorason commented Oct 2, 2023

another question, also what short cuts is good for adding Circle and Rectangle? cmd + c its for copy, cmd + r for Rectangle?

@Dimchikkk
Copy link
Owner Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants