FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICustomKeyboardNavigation

    trait · ferroui-base · v0.5.0

    trait ICustomKeyboardNavigation
    

    Designates a control as handling its own keyboard navigation.

    An input element that implements it returns itself from the as_custom_keyboard_navigation virtual member of InputElement.

    View source

    Members

    get_next

    fn get_next(self: &Self, element: &Ref<InputElement>, direction: NavigationDirection) -> (bool, Option<Ref<InputElement>>)
    

    Gets the next element in the specified navigation direction.

    element is the element being navigated from. Returns a tuple consisting of:

    • a boolean indicating whether the request was handled. If false is returned then custom navigation will be bypassed for the request.
    • if handled is true: the next element in the navigation direction, or None if default navigation should continue outside the element.

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.