Discuss Scratch
- Animationzplus
-
1 post
Support for shift+enter key sensing
Pretty much summed up in the title… would probably look like this<key [shift v] pressed>
<key [enter v] pressed>
That would be nice! What about<caps lock is on?>boolean block
- Cheetozpuffs
-
2 posts
Support for shift+enter key sensing
Name a variable hi, and set the variable to “enter” and do
if <key pressed?> then
end
if <key pressed?> then
end
- MarsChompsVenus
-
96 posts
Support for shift+enter key sensing
Um. You can detect the enter key already.
- Cheetozpuffs
-
2 posts
Support for shift+enter key sensing
cap Um. You can detect the enter key already.
- nikky10000000
-
500+ posts
Support for shift+enter key sensing
Im not sure but i thinkcap Um. You can detect the enter key already.
when (join [enter] []) key pressedActually works.
Last edited by nikky10000000 (Dec. 4, 2024 22:54:05)
- Oisthebestletter
-
100+ posts
Support for shift+enter key sensing
Support for Shift, Enter, Ctrl, and alt but I think backspace would mess things up. I think we should also add Control, Alt,and Backspace to that list also.
- MarsChompsVenus
-
96 posts
Support for shift+enter key sensing
Support for Shift, Enter, Ctrl, and alt but I think backspace would mess things up. I think we should also add Control, Alt,and Backspace to that list also.
Why would backspace mess things up? If you're talking about deleting blocks in the editor just make it so that t doesn't do that if the mouse was last clicked in the game window.
And seriously, you can detect enter. Don't believe me? Go to https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1050231617/, run the project, type something on your keyboard, wait until the thing stops typing, and press enter. It doesn't use scratch's
ask [] and waitBlock. Yes, this project is mine but I'm not posting it to get views.
Last edited by MarsChompsVenus (Dec. 5, 2024 03:09:10)
- Oisthebestletter
-
100+ posts
Support for shift+enter key sensing
Oh, ok. Would be great for a text editor.Support for Shift, Enter, Ctrl, and alt but I think backspace would mess things up. I think we should also add Control, Alt,and Backspace to that list also.
Why would backspace mess things up? If you're talking about deleting blocks in the editor just make it so that t doesn't do that if the mouse was last clicked in the game window.