ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Stop list focus from blocking key press input

KRkriblo_test•Created April 6, 2021
Example: Stop list focus from blocking key press input
7
4
106 views
View on Scratch

Instructions

In a list based project (such as Fly in the List of Danger, see below), key press input doesn't work if the user clicks the list, which typically covers the entire stage. This is because the list is then in focus, and intercepts key press input in the project. The only way I could come up with to remove focus from the list, is to hide and show the list. This could be done when the project starts, if the user hasn't pressed any key after a certain amount of time. See inside for an example. All code by me (@kriblo). Fly in the List of Danger https://scratch.mit.edu/projects/384053683/

Project Details

Project ID511690000
CreatedApril 6, 2021
Last ModifiedApril 6, 2021
SharedApril 6, 2021
Visibilityvisible
CommentsAllowed