# KeyboardNavigation

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/struct-keyboardnavigation/

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

```rust
struct KeyboardNavigation
```

Defines attached properties that control keyboard navigation behaviour
for a container.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`tab_index_property`](#function-tab_index_property)
- [`tab_navigation_property`](#function-tab_navigation_property)
- [`tab_once_active_element_property`](#function-tab_once_active_element_property)
- [`is_tab_stop_property`](#function-is_tab_stop_property)
- [`get_tab_index`](#function-get_tab_index)
- [`set_tab_index`](#function-set_tab_index)
- [`get_tab_navigation`](#function-get_tab_navigation)
- [`set_tab_navigation`](#function-set_tab_navigation)
- [`get_tab_once_active_element`](#function-get_tab_once_active_element)
- [`set_tab_once_active_element`](#function-set_tab_once_active_element)
- [`set_is_tab_stop`](#function-set_is_tab_stop)
- [`get_is_tab_stop`](#function-get_is_tab_stop)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this type.

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

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

### tab_index_property

```rust
fn tab_index_property() -> &'static AttachedProperty<i32>
```

Defines the `TabIndex` attached property.

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

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

### tab_navigation_property

```rust
fn tab_navigation_property() -> &'static AttachedProperty<KeyboardNavigationMode>
```

Defines the `TabNavigation` attached property.

It defines how pressing the Tab key causes focus to be navigated
between the children of the container.

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

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

### tab_once_active_element_property

```rust
fn tab_once_active_element_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
```

Defines the `TabOnceActiveElement` attached property.

When focus enters a container which has its `TabNavigation`
attached property set to `Once`, this property defines to which
child the focus should move.

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

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

### is_tab_stop_property

```rust
fn is_tab_stop_property() -> &'static AttachedProperty<bool>
```

Defines the `IsTabStop` attached property.

It determines if the control can receive focus by tab navigation.

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

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

### get_tab_index

```rust
fn get_tab_index(element: &InputElement) -> i32
```

Gets the `TabIndex` attached property for an element.

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

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

### set_tab_index

```rust
fn set_tab_index(element: &InputElement, value: i32)
```

Sets the `TabIndex` attached property for an element.

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

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

### get_tab_navigation

```rust
fn get_tab_navigation(element: &InputElement) -> KeyboardNavigationMode
```

Gets the `TabNavigation` attached property for a container.

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

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

### set_tab_navigation

```rust
fn set_tab_navigation(element: &InputElement, value: KeyboardNavigationMode)
```

Sets the `TabNavigation` attached property for a container.

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

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

### get_tab_once_active_element

```rust
fn get_tab_once_active_element(element: &InputElement) -> Option<Ref<InputElement>>
```

Gets the `TabOnceActiveElement` attached property for a container.

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

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

### set_tab_once_active_element

```rust
fn set_tab_once_active_element(element: &InputElement, value: Option<Ref<InputElement>>)
```

Sets the `TabOnceActiveElement` attached property for a container.

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

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

### set_is_tab_stop

```rust
fn set_is_tab_stop(element: &InputElement, value: bool)
```

Sets the `IsTabStop` attached property for an element.

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

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

### get_is_tab_stop

```rust
fn get_is_tab_stop(element: &InputElement) -> bool
```

Gets the `IsTabStop` attached property for an element.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)

## Availability

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