From 225f0c4d12aecb7467022dd642fc393c3c8dd3ee Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 3 Feb 2025 22:09:45 -0700 Subject: [PATCH] Fix input example (#24165) Release Notes: - N/A --- crates/gpui/examples/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/examples/input.rs b/crates/gpui/examples/input.rs index bef1546f06..7d0a72f21a 100644 --- a/crates/gpui/examples/input.rs +++ b/crates/gpui/examples/input.rs @@ -697,7 +697,7 @@ fn main() { }, ) .unwrap(); - let view = window.root(cx).unwrap(); + let view = window.update(cx, |_, _, cx| cx.entity()).unwrap(); cx.observe_keystrokes(move |ev, _, cx| { view.update(cx, |view, cx| { view.recent_keystrokes.push(ev.keystroke.clone());