mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Added ability to fast jump to replied message with right click on panel.
This commit is contained in:
parent
e52fe9ddb0
commit
7a139ecda7
2 changed files with 7 additions and 1 deletions
|
@ -6334,7 +6334,9 @@ void HistoryWidget::mousePressEvent(QMouseEvent *e) {
|
|||
} else {
|
||||
_forwardPanel->editOptions(controller()->uiShow());
|
||||
}
|
||||
} else if (_replyTo && (e->modifiers() & Qt::ControlModifier)) {
|
||||
} else if (_replyTo
|
||||
&& ((e->modifiers() & Qt::ControlModifier)
|
||||
|| (e->button() != Qt::LeftButton))) {
|
||||
jumpToReply(_replyTo);
|
||||
} else if (_replyTo) {
|
||||
editDraftOptions();
|
||||
|
|
|
@ -386,6 +386,10 @@ void FieldHeader::init() {
|
|||
} else if (reply) {
|
||||
_editOptionsRequests.fire({});
|
||||
}
|
||||
} else if (!isLeftButton) {
|
||||
if (const auto reply = replyingToMessage()) {
|
||||
_jumpToItemRequests.fire_copy(reply);
|
||||
}
|
||||
}
|
||||
}
|
||||
}, lifetime());
|
||||
|
|
Loading…
Add table
Reference in a new issue