Fix input example (#24165)

Conrad Irwin created

Release Notes:

- N/A

Change summary

crates/gpui/examples/input.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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());