Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Improve the tab stop example by demonstrating tab_group (#44647)
Serophotsa86b0ab2e026
diff --git a/crates/gpui/examples/tab_stop.rs b/crates/gpui/examples/tab_stop.rsindex 4d99da1a07a..efad97236cf 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]"),+ ),+ )}}