Post

This demo doesn't use a single line of JS code to respond to the arrow keys. Movement of the player is handled 100% by the upcoming `focusgroup` HTML attribute! Focusgroup was definitely *not* made for this 😅 But, so cool to have this out of the box on the web. More ➡️ open-ui.org/components/s...

See now I'm wondering how you've done this demo... Grid isn't supported yet so how do you move both directions? Either way that's an amazing abuse of this 😂

I'm guessing it's maybe behind a separate flag so it's not exposed under experimental web platform features?

Ah yeah, basically all origin trials will also be available under that flag (or rarely in a dedicated one). Origin trials are useful for testing with your real users who can't/shouldn't go and change flags.

0 reposts2 likes

No replies yet.