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...
Post
I wish there was a has-ever-been-focused pseudo in CSS. Unfortunately I had to resort to JS for the eaten state.
0 reposts1 like