diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 4cf3f03c8..914af7961 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -4561,7 +4561,7 @@ bool HistoryWidget::eventFilter(QObject *obj, QEvent *e) { if (k->key() == Qt::Key_Up) { #ifdef Q_OS_MAC // Cmd + Up is used instead of Home. - if (!_field->textCursor().atStart()) { + if (HasSendText(_field)) { return false; } #endif @@ -4569,7 +4569,7 @@ bool HistoryWidget::eventFilter(QObject *obj, QEvent *e) { } else if (k->key() == Qt::Key_Down) { #ifdef Q_OS_MAC // Cmd + Down is used instead of End. - if (!_field->textCursor().atEnd()) { + if (HasSendText(_field)) { return false; } #endif