summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 00:20:09 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 00:20:09 +0100
commit04468a7147c38cd363cb545de0d9a9881ce071dd (patch)
treeed3888bf9d848dbba57eb61a6b676b20bab4c189 /native
parenta44cd072120cc059e8dc4633b33d902817f89834 (diff)
downloadiced-04468a7147c38cd363cb545de0d9a9881ce071dd.tar.gz
iced-04468a7147c38cd363cb545de0d9a9881ce071dd.tar.bz2
iced-04468a7147c38cd363cb545de0d9a9881ce071dd.zip
Implement event capturing for `Checkbox`
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/checkbox.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs
index 16a6a648..42e52aef 100644
--- a/native/src/widget/checkbox.rs
+++ b/native/src/widget/checkbox.rs
@@ -172,6 +172,8 @@ where
if mouse_over {
messages.push((self.on_toggle)(!self.is_checked));
+
+ return event::Status::Captured;
}
}
_ => {}