2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Added ability to jump to bottom in HistoryWidget with Ctrl key.

Fixed #7868.
This commit is contained in:
23rd
2020-07-16 00:58:38 +03:00
committed by John Preston
parent 67b6023b32
commit acce671eb0

View File

@@ -113,6 +113,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "styles/style_chat_helpers.h"
#include "styles/style_info.h"
#include <QGuiApplication> // keyboardModifiers()
#include <QtGui/QWindow>
#include <QtCore/QMimeData>
@@ -2932,7 +2933,9 @@ void HistoryWidget::onWindowVisibleChanged() {
}
void HistoryWidget::historyDownClicked() {
if (_replyReturn && _replyReturn->history() == _history) {
if (QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
showHistory(_peer->id, ShowAtUnreadMsgId);
} else if (_replyReturn && _replyReturn->history() == _history) {
showHistory(_peer->id, _replyReturn->id);
} else if (_replyReturn && _replyReturn->history() == _migrated) {
showHistory(_peer->id, -_replyReturn->id);