mirror of https://github.com/procxx/kepka.git
Reply by double clicking a message.
Backported from telegramdesktop/tdesktop@128663d9 Closes #117
This commit is contained in:
parent
dde6ba57a8
commit
c8ea0636e3
|
@ -1137,6 +1137,15 @@ void HistoryInner::mouseDoubleClickEvent(QMouseEvent *e) {
|
||||||
_trippleClickTimer.start(QApplication::doubleClickInterval());
|
_trippleClickTimer.start(QApplication::doubleClickInterval());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!ClickHandler::getActive()
|
||||||
|
&& !ClickHandler::getPressed()
|
||||||
|
&& _mouseCursorState == HistoryDefaultCursorState) {
|
||||||
|
if (const auto item = _mouseActionItem) {
|
||||||
|
mouseActionCancel();
|
||||||
|
App::contextItem(item);
|
||||||
|
_widget->onReplyToMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryInner::contextMenuEvent(QContextMenuEvent *e) {
|
void HistoryInner::contextMenuEvent(QContextMenuEvent *e) {
|
||||||
|
|
Loading…
Reference in New Issue