mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Added ability to jump to bottom in HistoryWidget with Ctrl key.
Fixed #7868.
This commit is contained in:
parent
67b6023b32
commit
acce671eb0
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue