     func didTapSendButton(text: String)
 }
 
-class ChatInputView: UIView {
+class ChatInputView: UIView, UITextFieldDelegate {
     weak var delegate: ChatInputDelegate?
 
     private let textField: UITextField = {

        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)
        return textField
    }()


        addSubview(button)
        addSubview(separator)

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