From 16b49084433c0a6be25012a3230bffaa39f4c7dd Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 27 Jun 2020 10:49:59 -0700 Subject: [PATCH] Mention Direction::None in View::take_focus --- cursive-core/src/view/view_trait.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cursive-core/src/view/view_trait.rs b/cursive-core/src/view/view_trait.rs index 7183d0f..f794781 100644 --- a/cursive-core/src/view/view_trait.rs +++ b/cursive-core/src/view/view_trait.rs @@ -102,6 +102,9 @@ pub trait View: Any + AnyView { /// When the source is unclear, `Front` is usually used. /// /// Default implementation always return `false`. + /// + /// If the source is `Direction::Abs(Absolute::None)`, it is _recommended_ + /// not to change the current focus selection. fn take_focus(&mut self, source: Direction) -> bool { let _ = source; false