Here is my original suggestion: http://suggest.scratch.mit.edu/forums/6 … ssed-block
We need more keys available in the keypressed block. For example:
All the punctuation characters .,;:[]{}
Return key
Delete key
Backspace key
PageUp/PageDown
Home/End
Tab/Back Tab
The admin Lightnin responded
We’re open to adding some more keys, but not a ton. Here are the constraints:
-We need to keep the key menu from being too long
-Some keys are not universally available across keyboards — and we want everyone to be able run projects
-Using a lot of keys could make it harder to support tablets in the future
-Could be confusion around some keys such as return (which used to mean “green flag”)
If someone could make a list in the forums, and prioritize keys based on consensus, that would be awesome. We’ll refer to it when deciding which ones to add. Thanks for suggesting!
So, I'm creating this thread so we can vote for our favorite keys to add to the list.
What I need you to do is list your top 10 keys to add to the Keypressed block (and the When [space] key pressed hat) in vote order--your favorite being #1 and least favorite being #10.
To get the ball rolling, here is my vote:
1. Return (or Enter) - no longer tied to green flag
2. Left Shift and Right Shift - as separate keys
3. Backspace
4. Period and Comma: .,
5. Question Mark: ?
6. Math symbols: +-*/=
7. Double and single quotes: " and '
8. Brackets and Parenthisis: [, ], (, and ) - { and } would be nice
9. PageUp and PageDown
10. Home and End
Others to consider:
!@#$%^&;:\|<>
F1-F10
Insert Delete
Tab Back-Tab
Ctrl
Alt
Additionally, I would really like the keys on the number pad to respond to the Keypressed block and When [space] key pressed hat.
Last edited by BoltBait (2012-03-08 13:18:04)
Offline
All I think we need would be shift, tab, and enter
Offline
Tab, shift, ctrl/cmd, alt, enter, backspace, ,./;'[]\-=`
Also, when ~!@#$%^&*()_+{}|:"<>? are pressed, it should respond to both `1234567890-=[]\;',./ and shift.
Last edited by scimonster (2012-03-08 13:36:19)
Offline
Support
Offline
turkey3 wrote:
Support
No need to "support" this suggestion. It is already being considered by the Scratch Team for the 2.0 release.
What you need to do now it tell us which keys you want added to the list... preferrably in priority order for you.
Offline
Backspace
Ctrl
Offline
MaxFlyboy wrote:
A selection saying
<key [any v] pressed?>It would really help for slideshows, or anything like that.
Yes, we need to be able to sense if anything is being pressed.
I fixed the block BTW.
Last edited by scimonster (2012-03-09 04:43:46)
Offline
scimonster wrote:
MaxFlyboy wrote:
A selection saying
<key [any v] pressed?>It would really help for slideshows, or anything like that.Yes, we need to be able to sense if anything is being pressed.
I fixed the block BTW.
I support the <key [any v] pressed?>.
Last edited by TorbyFork234 (2012-06-07 12:50:44)
Offline
Sorry to reawaken an old topic. I just wanted to put in my two cents.
Reading through this forum, I came across a problem: how would you deal with the fact that Apple computers have Cmd, while PC's have Ctrl (among numerous other keyboard differences on various other platforms)?
I think the addition of the number keys, both shift keys, and maybe period and comma would be great. But any key that has to be accessed by using shift will pose a problem. For example, if I click Shift + 0 to get the left-facing parenthesis, does that register the shift key being pressed, the 0 key being pressed, the ) key being pressed, or all three? Rather, I think the implementation of the "keypressed" command should be reworked in the following way (while still maintaining support for an older version of the block):
Rather than being a Boolean, the "keypressed?" reporter returns a list that contains all the keys being pressed at that moment (the same could be done for the "touching" Boolean). Instead of checking whether a certain key is pressed, the program checks if a given key is a member of the list of keys that are pressed.
Offline
Usually, in programs designed for windows, command acts as a control key. And the option as an alt.
However, pageup/down are not supported on many laptops, and neither are home/end...
Offline
Some keys you mentioned don't appear on many minimised and laptop keyboards.
Offline
In my experiences except for separate left and right ctrl/alt/win keys, laptops almost always have the full complement, but some are combined. So for example to send the End keystroke, you might have to physically press Fn+Right Arrow, or something like that.
Offline
Rigth shift left shif right ctrl left ctrl right alt and left alt are all ones that are used a TON in game making, yet none are on the lit. Add em. (though i would say just ctrl alt and shift... you rlly don't need left and right separate.)
Offline
scimonster wrote:
MaxFlyboy wrote:
A selection saying
<key [any v] pressed?>It would really help for slideshows, or anything like that.Yes, we need to be able to sense if anything is being pressed.
I fixed the block BTW.
That would be great! Also
when key [any v] pressed
Last edited by Mokat (2012-05-29 13:55:31)
Offline
How about these:
<key pressed?> (key pressed)
Offline
While I do find the current keypress-detection capabilities of Scratch very limited, Lightnin has a point: On my QWERTZ keyboard, there is no dedicated key for most special characters and I have to use Shift or AltGr to access them. This could cause problems with detecting said keys across different layouts, as special characters are usually detected by their key code rather than their character string.
For example, in any video game that requires the user to press [~] to access the console (which is a key I do not have), I have to press [ö] to open it, which took me quite a while to figure out.
What I would suggest instead is adding a block that returns a string for what key was pressed last and support for dragging round blocks into the dropdown selector of the current boolean <key [] pressed?> block. Not only does this allow for actual word processors, but these two in combination would also let Scratch games offer customizable key bindings:
if <key (keyJump) pressed?> random jump code goes here end
Offline