Cursor controlled menu (demo)

Ok so basically I wanted to make a small, neat test of the new browser events from the new Makecode update! Nothing special… not to me at least, there will definitely be people who need something like this, so I thought I would my implementation, considering it works so well.

7 Likes

So many cool things that you can do!!! I agree that the custom menu might need to have an option for cursor controlled.

1 Like

I think I’m in love :star_struck:

1 Like

:rofl:
Well, it’s not a complete project! If you add a title or a border it kinda breaks, and if you use the arrow keys it also breaks. I’ll probably make a very small extension that adds a JavaScript version of the code. One that doesn’t have these problems. In JavaScript you can directly set the selected index of the menu, so moving the menu with the arrow keys won’t mess it up! I can also add checks for if there is a title, border, etc…

2 Likes