# NavigationDirection

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

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

```rust
enum NavigationDirection
```

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

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

## Members

- [`Next`](#variant-next)
- [`Previous`](#variant-previous)
- [`First`](#variant-first)
- [`Last`](#variant-last)
- [`Left`](#variant-left)
- [`Right`](#variant-right)
- [`Up`](#variant-up)
- [`Down`](#variant-down)
- [`PageUp`](#variant-pageup)
- [`PageDown`](#variant-pagedown)
- [`is_tab`](#function-is_tab)
- [`is_directional`](#function-is_directional)

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

### Next

```rust
Next
```

Move the focus to the next control in the tab order.

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

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

### Previous

```rust
Previous
```

Move the focus to the previous control in the tab order.

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

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

### First

```rust
First
```

Move the focus to the first control in the tab order.

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

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

### Last

```rust
Last
```

Move the focus to the last control in the tab order.

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

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

### Left

```rust
Left
```

Move the focus to the left.

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

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

### Right

```rust
Right
```

Move the focus to the right.

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

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

### Up

```rust
Up
```

Move the focus up.

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

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

### Down

```rust
Down
```

Move the focus down.

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

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

### PageUp

```rust
PageUp
```

Move the focus up a page.

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

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

### PageDown

```rust
PageDown
```

Move the focus down a page.

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

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

### is_tab

```rust
fn is_tab(self: Self) -> bool
```

Checks whether a navigation direction is a tab movement.

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

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

### is_directional

```rust
fn is_directional(self: Self) -> bool
```

Checks whether a navigation direction is a directional movement.

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

## 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`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `PartialOrd`
- `Ord`
- [`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/).
