Enable focus for tabs and display

You can now switch tabs from the keyboard using the usual radio button
interaction.
This commit is contained in:
Aaron Fenyes 2024-09-09 02:15:04 -07:00
parent 69ab888d5b
commit 2efc08d6c0
2 changed files with 16 additions and 2 deletions

View file

@ -482,7 +482,7 @@ fn main() {
}
}
div { "Mean frame interval: " (mean_frame_interval.get()) " ms" }
canvas(ref=display, width="600", height="600")
canvas(ref=display, width=600, height=600, tabindex=0)
div(ref=gen_controls) {
label(class="control") {
span { "Sphere 0 depth" }