# KeyGestureExtesions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-keygestureextesions/

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

```rust
trait KeyGestureExtesions
```

Extension methods of `KeyGesture` for raw key events.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/key_gesture_extesions.rs#L7)

## Members

- [`matches_raw`](#function-matches_raw)

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

### matches_raw

```rust
fn matches_raw(self: &Self, key_event: &RawKeyEventArgs) -> bool
```

C# `Matches(this KeyGesture gesture, RawKeyEventArgs keyEvent)`: whether a raw key event
matches the gesture: same keyboard modifiers and the same key, where the numpad operation
keys match their regular counterparts. Named `matches_raw` because `KeyGesture::matches`
is the overload for a routed key event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/key_gesture_extesions.rs#L12)

## Trait implementations

- [`KeyGestureExtesions`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-keygestureextesions/)

## Availability

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