---
title: enablesReturnKeyAutomatically
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinputtraits/enablesreturnkeyautomatically
---

# enablesReturnKeyAutomatically

A Boolean value that indicates whether the system automatically enables the Return key when the user enters text.

## Declaration

```swift
optional var enablesReturnKeyAutomatically: Bool { get set }
```

## Discussion

Discussion The default value for this property is false. If you set it to true, the keyboard disables the Return key when the text entry area contains no text. As soon as the user enters some text, the Return key is automatically enabled.

## See Also

### Managing the keyboard behavior

- [isSecureTextEntry](uikit/uitextinputtraits/issecuretextentry.md)
