# ShortcutBinding

> Represents a key binding used to trigger a shortcut.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.ShortcutManagement](/engine/6000.7/script-reference/unityeditor/shortcutmanagement.md)
* **Assembly:** UnityEditor.CoreModule
* **Implements:** [IEquatable\<ShortcutBinding>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct ShortcutBinding : IEquatable<ShortcutBinding>
```

## Constructors

| Constructor                                                                                                                                              | Description                                               |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [ShortcutBinding(UnityEditor.ShortcutManagement.KeyCombination)](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding/ctor.md) | Creates a shortcut binding from a single key combination. |

## Properties

| Property                                                                                                                           | Description                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [keyCombinationSequence](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding/keycombinationsequence.md) | The sequence of key combinations required to trigger a shortcut with this binding. |

## Static Properties

| Property                                                                                         | Description                                       |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------- |
| [empty](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding/empty.md) | A key combination representing the empty binding. |

## Methods

| Method                                                                                                       | Description                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Equals](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding/equals.md)           | Determines whether this instance and a specified object, which must also be a \[\[ShortcutBinding}} object, have the same value.                                                       |
| [GetHashCode](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding/gethashcode.md) | Returns the hash code for the value of this instance.                                                                                                                                  |
| [ToString](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding/tostring.md)       | Converts the value of the current [ShortcutBinding](/engine/6000.7/script-reference/unityeditor/shortcutmanagement/shortcutbinding.md) object to its equivalent string representation. |
