# Editor.AutoComplete.OnGlobalMousePressed

```csharp
void OnGlobalMousePressed()
```

Called when the mouse is pressed. Will hide this window if we clicked on anything
except ourselves or our parent control.

Declared in [Editor.AutoComplete](/api/Editor.AutoComplete).
Assembly: `Sandbox.Tools`.
