         textField.backgroundColor = .chatInputTextfieldBackground
         textField.attributedPlaceholder = NSAttributedString(string: NSLocalizedString("chat.placeholder", comment: ""), attributes: [.foregroundColor: UIColor.chatInputPlaceholder])
         textField.insets = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16)
+        textField.enablesReturnKeyAutomatically = true
+        textField.returnKeyType = .send
         return textField
     }()
 

    func didTapSendButton(text: String)
}

class ChatInputView: UIView {
    weak var delegate: ChatInputDelegate?

    private let textField: UITextField = {

        addSubview(button)
        addSubview(separator)

        textField.delegate = self
        button.addTarget(self, action: #selector(didTapSendButton), for: .touchUpInside)
        configureConstraints()
    }
