This commit is contained in:
Conrad Irwin 2023-11-20 12:34:08 -07:00
parent d0dd44faad
commit 25ed7c57c1
4 changed files with 87 additions and 106 deletions

View file

@ -305,7 +305,7 @@ mod test {
div().id("testview").child(
div()
.key_context("parent")
.on_key_down(cx.callback(|this, _, _| this.saw_key_down = true))
.on_key_down(cx.listener(|this, _, _| this.saw_key_down = true))
.on_action(
cx.callback(|this: &mut TestView, _: &TestAction, _| {
this.saw_action = true