# context

> Instance of the context in which the shortcut was triggered.

## Definition

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

```csharp
public object context
```

### Remarks

If the triggered shortcut was registered with a context of type [EditorWindow](/engine/6000.7/script-reference/unityeditor/editorwindow.md) then `context` will be the instance of the [EditorWindow](/engine/6000.7/script-reference/unityeditor/editorwindow.md) in which the shortcut was triggered.
