# KeyBindingProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-keybindingprops/

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

```rust
trait KeyBindingProps: ElementBuilder
```

The properties and routed events of `KeyBinding`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4820)

## Members

- [`command`](#function-command)
- [`command_parameter`](#function-command_parameter)
- [`gesture`](#function-gesture)

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

### command

```rust
fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
```

Sets `KeyBinding::command_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4822)

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

### command_parameter

```rust
fn command_parameter<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `KeyBinding::command_parameter_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4827)

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

### gesture

```rust
fn gesture<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
```

Sets `KeyBinding::gesture_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4832)

## Trait implementations

- [`KeyBindingProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-keybindingprops/)

## Availability

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