mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Added ability to jump to bottom in HistoryWidget with Ctrl key.
Fixed #7868.
This commit is contained in:
@@ -113,6 +113,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "styles/style_chat_helpers.h"
|
#include "styles/style_chat_helpers.h"
|
||||||
#include "styles/style_info.h"
|
#include "styles/style_info.h"
|
||||||
|
|
||||||
|
#include <QGuiApplication> // keyboardModifiers()
|
||||||
#include <QtGui/QWindow>
|
#include <QtGui/QWindow>
|
||||||
#include <QtCore/QMimeData>
|
#include <QtCore/QMimeData>
|
||||||
|
|
||||||
@@ -2932,7 +2933,9 @@ void HistoryWidget::onWindowVisibleChanged() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::historyDownClicked() {
|
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);
|
showHistory(_peer->id, _replyReturn->id);
|
||||||
} else if (_replyReturn && _replyReturn->history() == _migrated) {
|
} else if (_replyReturn && _replyReturn->history() == _migrated) {
|
||||||
showHistory(_peer->id, -_replyReturn->id);
|
showHistory(_peer->id, -_replyReturn->id);
|
||||||
|
Reference in New Issue
Block a user