diff options
author | 2020-11-12 00:47:58 +0100 | |
---|---|---|
committer | 2020-11-12 00:47:58 +0100 | |
commit | 18172f80c96f48cc915b4c8281b9157acaa74b16 (patch) | |
tree | d76d72350908b59c741d06b1ea7aa27394f6cb73 /native | |
parent | 7ff95f3a884fc5f7ca7417408bd6d4ed47c4e9cc (diff) | |
download | iced-18172f80c96f48cc915b4c8281b9157acaa74b16.tar.gz iced-18172f80c96f48cc915b4c8281b9157acaa74b16.tar.bz2 iced-18172f80c96f48cc915b4c8281b9157acaa74b16.zip |
Implement event capturing for `Radio`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/radio.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs index 6e74b404..781fffb1 100644 --- a/native/src/widget/radio.rs +++ b/native/src/widget/radio.rs @@ -175,6 +175,8 @@ where Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => { if layout.bounds().contains(cursor_position) { messages.push(self.on_click.clone()); + + return event::Status::Captured; } } _ => {} |