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.

Merge branch 'main' into picker

Mikayla Makia3bd04fed224
diff --cc crates/workspace2/src/modal_layer.rs
index 76c18310efc,01f940273a6..a0b759b1d92
--- a/crates/workspace2/src/modal_layer.rs
+++ b/crates/workspace2/src/modal_layer.rs
@@@ -45,10 -40,17 +40,9 @@@ impl ModalRegistry
TypeId::of::<A>(),
Box::new(move |mut div| {
let build_view = build_view.clone();
- dbg!("this point");
div.on_action(
- move |workspace: &mut Workspace,
- event: &A,
- phase: DispatchPhase,
- cx: &mut ViewContext<Workspace>| {
- dbg!("GOT HERE");
- if phase == DispatchPhase::Capture {
- return;
- }
-
+ move |workspace: &mut Workspace, event: &A, cx: &mut ViewContext<Workspace>| {
let new_modal = (build_view)(workspace, cx);
workspace.modal_layer.update(cx, |modal_layer, _| {
modal_layer.open_modal = Some(new_modal.into());