Skip to content

Commit ae64eaf

Browse files
committed
key event id_path dispatch
1 parent cc41cae commit ae64eaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/window_handle.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ impl WindowHandle {
168168
if let Some(id) = cx.app_state.focus {
169169
let id_path = ID_PATHS.with(|paths| paths.borrow().get(&id).cloned());
170170
if let Some(id_path) = id_path {
171-
processed |= self
172-
.view
173-
.event_main(&mut cx, Some(&id_path.0), event.clone());
171+
processed |=
172+
self.view
173+
.event_main(&mut cx, Some(id_path.dispatch()), event.clone());
174174
} else {
175175
cx.app_state.focus = None;
176176
}

0 commit comments

Comments
 (0)