DioxusLabs / blitz

High performance HTML and CSS renderer powered by WGPU
MIT License
626 stars 26 forks source link

Focus system #92

Closed matthunz closed 1 day ago

matthunz commented 3 weeks ago

IIRC we can port the dioxus-desktop focus system here . I'm not sure I understand that focus stack yet, but I believe we can port that method to Blitz's Node struct.

nicoburns commented 3 weeks ago

You could also look at legacy blitz's focus system (https://github.com/DioxusLabs/blitz/tree/legacy). Although I have no idea how good it is/was. Not sure if you'll be doing keyboard focus management, but if you are, I reckon we'll definitely want to support tabindex="0", but we could potentially skip on non-zero tabindex to begin with.