Implement event capturing for Row
This commit is contained in:
parent
18172f80c9
commit
451bf8dc84
@ -163,20 +163,20 @@ where
|
|||||||
renderer: &Renderer,
|
renderer: &Renderer,
|
||||||
clipboard: Option<&dyn Clipboard>,
|
clipboard: Option<&dyn Clipboard>,
|
||||||
) -> event::Status {
|
) -> event::Status {
|
||||||
self.children.iter_mut().zip(layout.children()).for_each(
|
self.children
|
||||||
|(child, layout)| {
|
.iter_mut()
|
||||||
let _ = child.widget.on_event(
|
.zip(layout.children())
|
||||||
|
.map(|(child, layout)| {
|
||||||
|
child.widget.on_event(
|
||||||
event.clone(),
|
event.clone(),
|
||||||
layout,
|
layout,
|
||||||
cursor_position,
|
cursor_position,
|
||||||
messages,
|
messages,
|
||||||
renderer,
|
renderer,
|
||||||
clipboard,
|
clipboard,
|
||||||
);
|
)
|
||||||
},
|
})
|
||||||
);
|
.fold(event::Status::Ignored, event::Status::merge)
|
||||||
|
|
||||||
event::Status::Ignored
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn draw(
|
fn draw(
|
||||||
|
Loading…
Reference in New Issue
Block a user