# KeyboardNavigationMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/enum-keyboardnavigationmode/

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

```rust
enum KeyboardNavigationMode
```

Describes how focus should be moved by directional or tab keys.

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

## Members

- [`Continue`](#variant-continue)
- [`Cycle`](#variant-cycle)
- [`Contained`](#variant-contained)
- [`Once`](#variant-once)
- [`None`](#variant-none)
- [`Local`](#variant-local)

<a id="variant-continue"></a>

### Continue

```rust
Continue
```

Items in the container will be cycled through, and focus will be
moved to the previous/next container after the first/last control in
the container.

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

<a id="variant-cycle"></a>

### Cycle

```rust
Cycle
```

Items in the container will be cycled through, and moving past the
first or last control in the container will cause the last/first
control to be focused.

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

<a id="variant-contained"></a>

### Contained

```rust
Contained
```

Items in the container will be cycled through and focus will stop
moving when the edge of the container is reached.

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

<a id="variant-once"></a>

### Once

```rust
Once
```

When focus is moved into the container, the control described by the
`TabOnceActiveElement` attached property on the container will be
focused. When focus moves away from this control, focus will move to
the previous/next container.

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

<a id="variant-none"></a>

### None

```rust
None
```

The container's children will not be focused when using the tab key.

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

<a id="variant-local"></a>

### Local

```rust
Local
```

TabIndexes are considered on local subtree only inside this container.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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