Skip to main content

ferroui_base/input/
navigation_method.rs

1/// Defines the method by which focus was changed.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3pub enum NavigationMethod {
4    /// The focus was changed by an unspecified method, e.g. calling
5    /// `InputElement::focus`.
6    #[default]
7    Unspecified,
8    /// The focus was changed by the user tabbing between control.
9    Tab,
10    /// The focus was changed by the user pressing a directional navigation
11    /// key.
12    Directional,
13    /// The focus was changed by a pointer click.
14    Pointer,
15}