Added ability to fast jump to replied message with right click on panel.

This commit is contained in:
23rd 2024-01-03 12:34:02 +03:00
parent e52fe9ddb0
commit 7a139ecda7
2 changed files with 7 additions and 1 deletions

View file

@ -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();

View file

@ -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());