Mention Direction::None in View::take_focus

This commit is contained in:
Alexandre Bury 2020-06-27 10:49:59 -07:00
parent b6444524ad
commit 16b4908443

View File

@ -102,6 +102,9 @@ pub trait View: Any + AnyView {
/// When the source is unclear, `Front` is usually used. /// When the source is unclear, `Front` is usually used.
/// ///
/// Default implementation always return `false`. /// 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 { fn take_focus(&mut self, source: Direction) -> bool {
let _ = source; let _ = source;
false false