# Sandbox.UI.TextEntry.CanEnterCharacter

```csharp
bool CanEnterCharacter(char c)
```

Called when a character is typed by the player.

### Parameters

- `c` (`char`): The typed character to test.

### Returns

`bool`: Return true to allow the character to be typed.

Declared in [Sandbox.UI.TextEntry](/api/Sandbox.UI.TextEntry).
Assembly: `Sandbox.Engine`.
