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

Backspace delete and backslash switch to local sprite variable / switch to global variable #7307

Open
a1game opened this issue Mar 28, 2024 · 10 comments
Labels
new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons type: enhancement New feature for the project

Comments

@a1game
Copy link

a1game commented Mar 28, 2024

Why this would be helpful

it would be nicer if i could delete a variable with backspace it would make it easier to use scratch

How this addon works

when you hover over a variable and click backspace it deletes
when you click \ over it it will toggle between sprite variable and global variable

Possible alternatives

No response

Additional context

No response

@a1game a1game added new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons type: enhancement New feature for the project labels Mar 28, 2024
@OneShot-Niko
Copy link
Contributor

OneShot-Niko commented Mar 28, 2024

This'd need #6804 + to rebind backspace and backslash from deleting a block, as they delete the last block you interacted with, so that needs rebinds for this to happen.

EDIT: Also, this technically doesn't have to be a new addon - It'd be probably be better off being apart of swap-local-global

@mybearworld
Copy link
Contributor

\ probably shouldn't be used - at least on a German keyboard layout, that's not a single key, but instead on Alt Gr+ß.

@OneShot-Niko
Copy link
Contributor

OneShot-Niko commented Mar 28, 2024

\ probably shouldn't be used - at least on a German keyboard layout, that's not a single key, but instead on Alt Gr+ß.

~On hungarian layouts its Shift+6, so I agree with this.

EDIT: Also / is a shortcut for CTRL+F on Firefox, so that'd have to be overwritten with event.preventDefault();, which is probably worth mentioning as well.~
EDIT2: I misread a backwards slash as forwards slash. I am so intelligent lol - Backwards slash is Alt GR+ Q on hungarian layouts.

@Secret-chest
Copy link
Contributor

Secret-chest commented Mar 28, 2024

In Romania the backslash is AltGr+Â.

@mybearworld
Copy link
Contributor

EDIT: Also / is a shortcut for CTRL+F on Firefox,

/ or \?

@OneShot-Niko
Copy link
Contributor

EDIT: Also / is a shortcut for CTRL+F on Firefox,

/ or ?

I misread / as ... my bad there.
Backwards slash is Alt GR + Q on hungarian layouts though, so that'd be pain.
Gonna correct myself there

@BroJac5246
Copy link
Contributor

EDIT: Also / is a shortcut for CTRL+F on Firefox,

/ or \?

I misread / as \... my bad there.
Backwards slash is Alt GR + Q on hungarian layouts though, so that'd be pain.

What about forwards (regular) slash?

@Secret-chest
Copy link
Contributor

What about forwards (regular) slash?

In Romania it has its own key. Backslash is AltGr+Â.

@OneShot-Niko
Copy link
Contributor

EDIT: Also / is a shortcut for CTRL+F on Firefox,

/ or \?

I misread / as \... my bad there.
Backwards slash is Alt GR + Q on hungarian layouts though, so that'd be pain.

What about forwards (regular) slash?

Shift+6

@mybearworld
Copy link
Contributor

mybearworld commented Mar 29, 2024

/ is on Shift+7 on German keyboards, and I remember it breaking keyboard input to Scratch projects in some way when I still used a German keyboard layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons type: enhancement New feature for the project
Projects
None yet
Development

No branches or pull requests

5 participants