mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Fix EventTrigger::none
This commit is contained in:
parent
b60c69ca63
commit
99dc97a092
@ -74,7 +74,7 @@ impl EventTrigger {
|
|||||||
|
|
||||||
/// Returns an `EventTrigger` that doesn't accept any event.
|
/// Returns an `EventTrigger` that doesn't accept any event.
|
||||||
pub fn none() -> Self {
|
pub fn none() -> Self {
|
||||||
Self::from_fn(|_| true)
|
Self::from_fn(|_| false)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns an `EventTrigger` that applies if either `self` or `other` applies.
|
/// Returns an `EventTrigger` that applies if either `self` or `other` applies.
|
||||||
|
Loading…
Reference in New Issue
Block a user