# sourceEvent

> The input event that triggered the shortcut.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor.ShortcutManagement](/engine/7000.0/script-reference/unityeditor/shortcutmanagement.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Event sourceEvent
```

### Remarks

This is `null` when the shortcut is triggered programmatically rather than by a user input event, for example when a clutch shortcut is ended because its context was deactivated rather than by releasing its binding.
