Skip to main content

IKeyboardNavigationHandler

Trait IKeyboardNavigationHandler 

Source
pub trait IKeyboardNavigationHandler {
    // Required methods
    fn set_owner(&self, owner: &Ref<InputElement>);
    fn move_(
        &self,
        element: Option<&Ref<InputElement>>,
        direction: NavigationDirection,
        key_modifiers: KeyModifiers,
        device_type: Option<KeyDeviceType>,
    ) -> bool;
}
Expand description

Defines the interface for classes that handle keyboard navigation for a window.

Required Methods§

Source

fn set_owner(&self, owner: &Ref<InputElement>)

Sets the owner of the keyboard navigation handler.

This method can only be called once, typically by the owner itself on creation.

Source

fn move_( &self, element: Option<&Ref<InputElement>>, direction: NavigationDirection, key_modifiers: KeyModifiers, device_type: Option<KeyDeviceType>, ) -> bool

Moves the focus in the specified direction.

element is the current element, key_modifiers any key modifiers active at the time of focus and device_type the optional key device type that caused the move.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§