diff --git a/crates/gpui/examples/tab_stop.rs b/crates/gpui/examples/tab_stop.rs index 4d99da1a07a123e9a18b3c64a90834c31bd76909..efad97236cfc778870db1ee723c92691578860dd 100644 --- a/crates/gpui/examples/tab_stop.rs +++ b/crates/gpui/examples/tab_stop.rs @@ -130,6 +130,50 @@ impl Render for Example { })), ), ) + .child( + div() + .id("group-1") + .tab_index(6) + .tab_group() + .tab_stop(false) + .child( + button("group-1-button-1") + .tab_index(1) + .child("Tab index [6, 1]"), + ) + .child( + button("group-1-button-2") + .tab_index(2) + .child("Tab index [6, 2]"), + ) + .child( + button("group-1-button-3") + .tab_index(3) + .child("Tab index [6, 3]"), + ), + ) + .child( + div() + .id("group-2") + .tab_index(7) + .tab_group() + .tab_stop(false) + .child( + button("group-2-button-1") + .tab_index(1) + .child("Tab index [7, 1]"), + ) + .child( + button("group-2-button-2") + .tab_index(2) + .child("Tab index [7, 2]"), + ) + .child( + button("group-2-button-3") + .tab_index(3) + .child("Tab index [7, 3]"), + ), + ) } }