# ICustomKeyboardNavigation

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

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

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/i_custom_keyboard_navigation.rs#L8)

## Members

- [`get_next`](#function-get_next)

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

### get_next

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/i_custom_keyboard_navigation.rs#L18)

## Availability

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