Skip to content

Commit e7104bd

Browse files
committed
chore: Refactor tab key to switch focus.
1 parent 61b7e54 commit e7104bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+450
-353
lines changed

Cargo.lock

Lines changed: 241 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ resolver = "2"
1515

1616
[workspace.dependencies]
1717
gpui = { git = "https://github.com/zed-industries/zed.git" }
18+
reqwest_client = { git = "https://github.com/zed-industries/zed.git" }
1819
gpui-component = { path = "crates/ui" }
1920
gpui-component-macros = { path = "crates/macros" }
2021
story = { path = "crates/story" }

crates/story/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fake = { version = "2.10.0", features = ["dummy"] }
1414
rand = "0.8"
1515
raw-window-handle = { version = "0.6", features = ["std"] }
1616
regex = "1"
17-
reqwest_client = { git = "https://github.com/zed-industries/zed.git" }
17+
reqwest_client.workspace = true
1818
rust-embed = "8.5.0"
1919
serde = "1"
2020
serde_json = "1"

crates/story/src/accordion_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl super::Story for AccordionStory {
3232
"The accordion uses collapse internally to make it collapsible."
3333
}
3434

35-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
35+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
3636
Self::view(window, cx)
3737
}
3838
}

crates/story/src/alert_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl super::Story for AlertStory {
4646
"Displays a callout for user attention."
4747
}
4848

49-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
49+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
5050
Self::view(window, cx)
5151
}
5252

crates/story/src/avatar_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl super::Story for AvatarStory {
3535
"Avatar is an image that represents a user or organization."
3636
}
3737

38-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
38+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
3939
Self::view(window, cx)
4040
}
4141

crates/story/src/badge_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl super::Story for BadgeStory {
3434
"A red dot that indicates the number of unread messages."
3535
}
3636

37-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
37+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
3838
Self::view(window, cx)
3939
}
4040

crates/story/src/button_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl super::Story for ButtonStory {
6161
false
6262
}
6363

64-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
64+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
6565
Self::view(window, cx)
6666
}
6767
}

crates/story/src/calendar_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl super::Story for CalendarStory {
2424
"A calendar to select a date or date range."
2525
}
2626

27-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
27+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
2828
Self::view(window, cx)
2929
}
3030
}

crates/story/src/chart_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl super::Story for ChartStory {
6868
"Beautiful Charts & Graphs."
6969
}
7070

71-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
71+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
7272
Self::view(window, cx)
7373
}
7474

0 commit comments

Comments
 (0)