Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

settings_ui: Fix tabbing in settings UI main page content (#41209)

Anthony Eidb3483a157cb4
diff --git a/crates/settings_ui/src/settings_ui.rs b/crates/settings_ui/src/settings_ui.rs
index f7f5a975b78..e60304a9f7b 100644
--- a/crates/settings_ui/src/settings_ui.rs
+++ b/crates/settings_ui/src/settings_ui.rs
@@ -2775,8 +2775,11 @@ impl SettingsWindow {
this.list_state.scroll_to_reveal_item(next_logical_index);
// We need to render the next item to ensure it's focus handle is in the element tree
cx.on_next_frame(window, |_, window, cx| {
- window.focus_next();
cx.notify();
+ cx.on_next_frame(window, |_, window, cx| {
+ window.focus_next();
+ cx.notify();
+ });
});
cx.notify();
return;
@@ -2804,8 +2807,11 @@ impl SettingsWindow {
this.list_state.scroll_to_reveal_item(next_logical_index);
// We need to render the next item to ensure it's focus handle is in the element tree
cx.on_next_frame(window, |_, window, cx| {
- window.focus_prev();
cx.notify();
+ cx.on_next_frame(window, |_, window, cx| {
+ window.focus_prev();
+ cx.notify();
+ });
});
cx.notify();
return;