From e08f2e755bad20f01a809930628600e987554378 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 18 Jun 2020 10:05:32 -0700 Subject: [PATCH] Fix typo --- CHANGELOG.md | 1 + cursive-core/src/views/radio.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eb31a2..fad172c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Fixed `LinearLayout` giving children incorrect sizes. - More accurate "important area" for `ShadowView` and `PaddedView`. - Fix potential panic when calling `TextArea::set_cursor` before its first layout phase. +- Disabled views no longer accept input if they are still in focus. ## 0.15.0 diff --git a/cursive-core/src/views/radio.rs b/cursive-core/src/views/radio.rs index 0082133..e5d7e08 100644 --- a/cursive-core/src/views/radio.rs +++ b/cursive-core/src/views/radio.rs @@ -209,7 +209,7 @@ impl View for RadioButton { } fn on_event(&mut self, event: Event) -> EventResult { - if !self.enabled() { + if !self.enabled { return EventResult::Ignored; }