# IKeyboardNavigationHandler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/trait-ikeyboardnavigationhandler/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait IKeyboardNavigationHandler
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/i_keyboard_navigation_handler.rs#L6)

## Members

- [`set_owner`](#function-set_owner)
- [`move_`](#function-move_)

<a id="function-set_owner"></a>

### set_owner

```rust
fn set_owner(self: &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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/i_keyboard_navigation_handler.rs#L11)

<a id="function-move_"></a>

### move_

```rust
fn move_(self: &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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/i_keyboard_navigation_handler.rs#L18)

## Trait implementations

- [`IKeyboardNavigationHandler`](/docs/0.5.0/api/ferroui-base/input/trait-ikeyboardnavigationhandler/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
