Skip to content

Commit 12ec7ef

Browse files
committed
chore: Refactor tab key to switch focus.
1 parent d7e04ec commit 12ec7ef

Some content is hidden

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

66 files changed

+266
-356
lines changed

Cargo.lock

Lines changed: 68 additions & 20 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
@@ -45,7 +45,7 @@ impl super::Story for AlertStory {
4545
"Displays a callout for user attention."
4646
}
4747

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

crates/story/src/badge_story.rs

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

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

crates/story/src/button_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl super::Story for ButtonStory {
5353
false
5454
}
5555

56-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
56+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
5757
Self::view(window, cx)
5858
}
5959
}

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
@@ -62,7 +62,7 @@ impl super::Story for ChartStory {
6262
"Beautiful Charts & Graphs."
6363
}
6464

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

crates/story/src/checkbox_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl super::Story for CheckboxStory {
2727
"A control that allows the user to toggle between checked and not checked."
2828
}
2929

30-
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render + Focusable> {
30+
fn new_view(window: &mut Window, cx: &mut App) -> Entity<impl Render> {
3131
Self::view(window, cx)
3232
}
3333
}

0 commit comments

Comments
 (0)