diff options
author | 2020-11-12 00:20:09 +0100 | |
---|---|---|
committer | 2020-11-12 00:20:09 +0100 | |
commit | 04468a7147c38cd363cb545de0d9a9881ce071dd (patch) | |
tree | ed3888bf9d848dbba57eb61a6b676b20bab4c189 /native | |
parent | a44cd072120cc059e8dc4633b33d902817f89834 (diff) | |
download | iced-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.rs | 2 |
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; } } _ => {} |