mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +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 {
|
} else {
|
||||||
_forwardPanel->editOptions(controller()->uiShow());
|
_forwardPanel->editOptions(controller()->uiShow());
|
||||||
}
|
}
|
||||||
} else if (_replyTo && (e->modifiers() & Qt::ControlModifier)) {
|
} else if (_replyTo
|
||||||
|
&& ((e->modifiers() & Qt::ControlModifier)
|
||||||
|
|| (e->button() != Qt::LeftButton))) {
|
||||||
jumpToReply(_replyTo);
|
jumpToReply(_replyTo);
|
||||||
} else if (_replyTo) {
|
} else if (_replyTo) {
|
||||||
editDraftOptions();
|
editDraftOptions();
|
||||||
|
|
|
@ -386,6 +386,10 @@ void FieldHeader::init() {
|
||||||
} else if (reply) {
|
} else if (reply) {
|
||||||
_editOptionsRequests.fire({});
|
_editOptionsRequests.fire({});
|
||||||
}
|
}
|
||||||
|
} else if (!isLeftButton) {
|
||||||
|
if (const auto reply = replyingToMessage()) {
|
||||||
|
_jumpToItemRequests.fire_copy(reply);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
Loading…
Add table
Reference in a new issue