# PlatformHotkeyConfiguration

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

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

```rust
struct PlatformHotkeyConfiguration
```

The key gestures of the platform for common editing and navigation
commands.

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

## Members

- [`command_modifiers`](#struct_field-command_modifiers)
- [`whole_word_text_action_modifiers`](#struct_field-whole_word_text_action_modifiers)
- [`selection_modifiers`](#struct_field-selection_modifiers)
- [`copy`](#struct_field-copy)
- [`cut`](#struct_field-cut)
- [`paste`](#struct_field-paste)
- [`undo`](#struct_field-undo)
- [`redo`](#struct_field-redo)
- [`select_all`](#struct_field-select_all)
- [`move_cursor_to_the_start_of_line`](#struct_field-move_cursor_to_the_start_of_line)
- [`move_cursor_to_the_end_of_line`](#struct_field-move_cursor_to_the_end_of_line)
- [`move_cursor_to_the_start_of_document`](#struct_field-move_cursor_to_the_start_of_document)
- [`move_cursor_to_the_end_of_document`](#struct_field-move_cursor_to_the_end_of_document)
- [`move_cursor_to_the_start_of_line_with_selection`](#struct_field-move_cursor_to_the_start_of_line_with_selection)
- [`move_cursor_to_the_end_of_line_with_selection`](#struct_field-move_cursor_to_the_end_of_line_with_selection)
- [`move_cursor_to_the_start_of_document_with_selection`](#struct_field-move_cursor_to_the_start_of_document_with_selection)
- [`move_cursor_to_the_end_of_document_with_selection`](#struct_field-move_cursor_to_the_end_of_document_with_selection)
- [`open_context_menu`](#struct_field-open_context_menu)
- [`back`](#struct_field-back)
- [`page_up`](#struct_field-page_up)
- [`page_down`](#struct_field-page_down)
- [`page_right`](#struct_field-page_right)
- [`page_left`](#struct_field-page_left)
- [`new`](#function-new)
- [`with_modifiers`](#function-with_modifiers)

<a id="struct_field-command_modifiers"></a>

### command_modifiers

```rust
command_modifiers: crate::input::KeyModifiers
```



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

<a id="struct_field-whole_word_text_action_modifiers"></a>

### whole_word_text_action_modifiers

```rust
whole_word_text_action_modifiers: crate::input::KeyModifiers
```



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

<a id="struct_field-selection_modifiers"></a>

### selection_modifiers

```rust
selection_modifiers: crate::input::KeyModifiers
```



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

<a id="struct_field-copy"></a>

### copy

```rust
copy: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-cut"></a>

### cut

```rust
cut: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-paste"></a>

### paste

```rust
paste: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-undo"></a>

### undo

```rust
undo: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-redo"></a>

### redo

```rust
redo: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-select_all"></a>

### select_all

```rust
select_all: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_start_of_line"></a>

### move_cursor_to_the_start_of_line

```rust
move_cursor_to_the_start_of_line: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_end_of_line"></a>

### move_cursor_to_the_end_of_line

```rust
move_cursor_to_the_end_of_line: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_start_of_document"></a>

### move_cursor_to_the_start_of_document

```rust
move_cursor_to_the_start_of_document: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_end_of_document"></a>

### move_cursor_to_the_end_of_document

```rust
move_cursor_to_the_end_of_document: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_start_of_line_with_selection"></a>

### move_cursor_to_the_start_of_line_with_selection

```rust
move_cursor_to_the_start_of_line_with_selection: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_end_of_line_with_selection"></a>

### move_cursor_to_the_end_of_line_with_selection

```rust
move_cursor_to_the_end_of_line_with_selection: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_start_of_document_with_selection"></a>

### move_cursor_to_the_start_of_document_with_selection

```rust
move_cursor_to_the_start_of_document_with_selection: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-move_cursor_to_the_end_of_document_with_selection"></a>

### move_cursor_to_the_end_of_document_with_selection

```rust
move_cursor_to_the_end_of_document_with_selection: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-open_context_menu"></a>

### open_context_menu

```rust
open_context_menu: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-back"></a>

### back

```rust
back: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-page_up"></a>

### page_up

```rust
page_up: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-page_down"></a>

### page_down

```rust
page_down: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-page_right"></a>

### page_right

```rust
page_right: Vec<crate::input::KeyGesture>
```



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

<a id="struct_field-page_left"></a>

### page_left

```rust
page_left: Vec<crate::input::KeyGesture>
```



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

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

### new

```rust
fn new(command_modifiers: KeyModifiers) -> Self
```

Creates a configuration for the given command modifiers, with Shift
as the selection modifier and Control as the whole-word modifier.

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

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

### with_modifiers

```rust
fn with_modifiers(command_modifiers: KeyModifiers, selection_modifiers: KeyModifiers, whole_word_text_action_modifiers: KeyModifiers) -> Self
```

Creates a configuration for the given modifiers.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`

## Availability

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