Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Dismiss theme_selector on esc
Federico Dionisiceb5d0c69ef5
diff --git a/crates/theme_selector2/src/theme_selector.rs b/crates/theme_selector2/src/theme_selector.rsindex 582ce43a88d..3c6cae297c6 100644--- a/crates/theme_selector2/src/theme_selector.rs+++ b/crates/theme_selector2/src/theme_selector.rs@@ -187,6 +187,10 @@ impl PickerDelegate for ThemeSelectorDelegate {Self::set_theme(self.original_theme.clone(), cx);self.selection_completed = true;}++ self.view+ .update(cx, |_, cx| cx.emit(DismissEvent))+ .log_err();}fn selected_index(&self) -> usize {