Discuss Scratch

benjabob
Scratcher
26 posts

Support backspace key

In the sensing section, there is a “key pressed” block, and backspace is not on the list of keys. I am making an email system, and I am going to impose a character limit on messages, maybe 250 or 500, and a character counter would be nice so that people could know how many characters their messages contain before they get an error message and lose their message. However, a character counter would be very impractical without a backspace key. Supporting the backspace key would be very easy and I am surprised it is not already supported!
<key [backspace] pressed?>
DaSpudLord
Scratcher
1000+ posts

Support backspace key

Support. However, on Mac, the backspace key is actually called the delete key, so I'm not sure if that would cause any problems.
alexphan
Scratcher
1000+ posts

Support backspace key

I support for
<key [backspace v] pressed?>
for Windows and
<key [delete v] pressed?>
for Mac.
benjabob
Scratcher
26 posts

Support backspace key

I see the problem… I don't think that would be too hard to fix.

<key [delete/backspace] pressed?>

“If live gives you lemons, KEEP THEM, because hey, free lemons!”
Sheep_maker
Scratcher
1000+ posts

Support backspace key

benjabob wrote:

I see the problem… I don't think that would be too hard to fix.

<key [delete/backspace] pressed?>

“If live gives you lemons, KEEP THEM, because hey, free lemons!”
Windows users (like me) have a delete button on their keyboard (on the Apple big keyboard they have a second delete button that does the same thing) which acts as a “forward-space.”
I think we have to assume that the user is using Windows (like how everyone is doing it) and maybe have an option to make the keys display as Apple. Or maybe the special key names could only apply to the Apple version of the offline editor.

And support for that and enter, another issue between Windows and Macs.
benjabob
Scratcher
26 posts

Support backspace key

Sheep_maker wrote:

benjabob wrote:

I see the problem… I don't think that would be too hard to fix.

<key [delete/backspace] pressed?>

“If live gives you lemons, KEEP THEM, because hey, free lemons!”
Windows users (like me) have a delete button on their keyboard (on the Apple big keyboard they have a second delete button that does the same thing) which acts as a “forward-space.”
I think we have to assume that the user is using Windows (like how everyone is doing it) and maybe have an option to make the keys display as Apple. Or maybe the special key names could only apply to the Apple version of the offline editor.

And support for that and enter, another issue between Windows and Macs.

To be honest I don't think that differences between Windows and Macs would matter all that much. I think JavaScript process backspace on Windows and delete on Macs as the same thing. I also don't think the enter thing would be a problem either. When I press return while inputting in Scratch on a mac, it stops the input, just like it does while pressing enter on a PC.
Sheep_maker
Scratcher
1000+ posts

Support backspace key

benjabob wrote:

Sheep_maker wrote:


To be honest I don't think that differences between Windows and Macs would matter all that much. I think JavaScript process backspace on Windows and delete on Macs as the same thing. I also don't think the enter thing would be a problem either. When I press return while inputting in Scratch on a mac, it stops the input, just like it does while pressing enter on a PC.
The keys are considered the same, but how they are called is different (this is why “space” doesn't come up as an actual space in the dropdown, Scratch gives the name of the character if the user can't write it on paper).
Ninkancho
Scratcher
500+ posts

Support backspace key

I've already discussed how non-standard Apple's insistence on the term “delete” for backspace is, so just call that “backspace”. “Enter” and “return” are more ambiguous, so using one or the other depending on the system could work as long as the terms always do the same thing.
chexbox
Scratcher
100+ posts

Support backspace key

Use this :
<key [backspace v] pressed?>
It is more often used. In the “Tips” help menu, there could be some sort of disclaimer. “Notice: on some keyboards, this key is labelled a ‘delete’ ”
FloatingMuffins
Scratcher
1000+ posts

Support backspace key

Support. Can't see anything wrong with this.
AubarinoEmpire
Scratcher
18 posts

Support backspace key

support. get this in 3.0!!!
NewSitckiman001
Scratcher
30 posts

Support backspace key

FloatingMuffins wrote:

Support. Can't see anything wrong with this.
How is that going to help
LuckyLucky7
Scratcher
1000+ posts

Support backspace key

NewSitckiman001 wrote:

FloatingMuffins wrote:

Support. Can't see anything wrong with this.
How is that going to help
Going to help with what? Scratch? This suggestion would add support for the backspace(on Windows) key and would create infinite possibilities for new kinds of projects.
DarthVader4Life
Scratcher
1000+ posts

Support backspace key

benjabob wrote:

In the sensing section, there is a “key pressed” block, and backspace is not on the list of keys. I am making an email system, and I am going to impose a character limit on messages, maybe 250 or 500, and a character counter would be nice so that people could know how many characters their messages contain before they get an error message and lose their message. However, a character counter would be very impractical without a backspace key. Supporting the backspace key would be very easy and I am surprised it is not already supported!
<key [backspace] pressed?>
u need backspace to delete characters. I'm thinking it would activate the block every time u pressed backspace. if that happens, it might start some code and/or not do what the backspace key is supposed to.

Last edited by DarthVader4Life (Aug. 9, 2019 15:50:44)

adsuri
Scratcher
1000+ posts

Support backspace key

DarthVader4Life wrote:

benjabob wrote:

In the sensing section, there is a “key pressed” block, and backspace is not on the list of keys. I am making an email system, and I am going to impose a character limit on messages, maybe 250 or 500, and a character counter would be nice so that people could know how many characters their messages contain before they get an error message and lose their message. However, a character counter would be very impractical without a backspace key. Supporting the backspace key would be very easy and I am surprised it is not already supported!
<key [backspace] pressed?>
u need backspace to delete characters. I'm thinking it would activate the block every time u pressed backspace. if that happens, it might start some code and/or not do what the backspace key is supposed to.
If you've clicked out of the project or typing an answer, it won't activate as with all the keys.

Last edited by adsuri (Aug. 9, 2019 01:13:12)

DarthVader4Life
Scratcher
1000+ posts

Support backspace key

adsuri wrote:

If you've clicked out of the project or typing an answer, it won't activate as with all the keys.
Never mind….

Last edited by DarthVader4Life (May 21, 2021 01:16:51)

MrFluffyPenguins
Scratcher
1000+ posts

Support backspace key

Support, but i think this is a duplicate. I dont have link.
Ampara2
Scratcher
5 posts

Support backspace key

Support. I think keys like backspace, enter, and shift should all already be in scratch, they are such important inputs.
efils
Scratcher
70 posts

Support backspace key

100% support. I need this for a terminal engine for a text adventure. One complication is that apparently, backspace in 3.0 deletes the last block you have clicked (which I think is stupid) unless you click anywhere on the script screen that is not a block (it even deletes if you're in fullscreen).
It can easily be fixed by removing that “feature,” though.

I think it would look like this:

<key [backspace v] pressed?>
when [backspace v] key pressed
mmnagelia
Scratcher
100+ posts

Support backspace key

Support. I need a backspace key for my OS I'm making, and I need a word processor. For that, I need the backspace, tab, enter, quotes, brackets, etc. keys.

Powered by DjangoBB