Skip to content

Commit

Permalink
Reply by double clicking a message.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Feb 28, 2018
1 parent ef8b6d1 commit 128663d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Telegram/SourceFiles/history/history_inner_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,14 @@ void HistoryInner::mouseDoubleClickEvent(QMouseEvent *e) {
_trippleClickTimer.start(QApplication::doubleClickInterval());
}
}
if (!ClickHandler::getActive()
&& !ClickHandler::getPressed()
&& _mouseCursorState == CursorState::None) {
if (const auto item = _mouseActionItem) {
mouseActionCancel();
_widget->replyToMessage(item);
}
}
}

void HistoryInner::contextMenuEvent(QContextMenuEvent *e) {
Expand Down

0 comments on commit 128663d

Please sign in to comment.