diff --git a/CHANGELOG.md b/CHANGELOG.md index b543433..afd3e9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ ### New features - Add `EventTrigger` and update `OnEventView` to use it. + - Breaking change: "inner" callbacks for OnEventView now take the event as + extra argument. - Add `Printer::enabled` and `EnableableView` to disable whole subtrees ### Bugfixes @@ -56,6 +58,7 @@ ### New features +- Cursive now supports third-party backends - Add generic `ScrollView` wrapper. Removes internal scrolling behaviour from `TextView`. - Callbacks sent through `Cursive::cb_sink()` are now processed instantly, @@ -78,6 +81,7 @@ ### Changes +- Replaced `Cursive::new()` with `Cursive::default()` - Renamed `Vec4` to `Margins` - `Callbacks` cannot be created from functions that return a value - The returned value used to be completely ignored diff --git a/src/views/on_event_view.rs b/src/views/on_event_view.rs index da4926b..7f5dfec 100644 --- a/src/views/on_event_view.rs +++ b/src/views/on_event_view.rs @@ -135,7 +135,7 @@ impl OnEventView { /// Registers a callback when the given event is ignored by the child. /// /// This is an advanced method to get more control. - /// [`Self::on_event()`] may be easier to use. + /// [`on_event`] may be easier to use. /// /// If the child view ignores the event, `cb` will be called with the /// child view as argument. @@ -143,6 +143,8 @@ impl OnEventView { /// /// Chainable variant. /// + /// [`on_event`]: OnEventView::on_event() + /// /// # Examples /// /// ```rust