parent
daf09fa532
commit
225f0c4d12
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@ fn main() {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let view = window.root(cx).unwrap();
|
let view = window.update(cx, |_, _, cx| cx.entity()).unwrap();
|
||||||
cx.observe_keystrokes(move |ev, _, cx| {
|
cx.observe_keystrokes(move |ev, _, cx| {
|
||||||
view.update(cx, |view, cx| {
|
view.update(cx, |view, cx| {
|
||||||
view.recent_keystrokes.push(ev.keystroke.clone());
|
view.recent_keystrokes.push(ev.keystroke.clone());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue