Added initial ability to handle middle button in peer lists.

This commit is contained in:
23rd 2025-01-07 23:37:08 +03:00
parent 5df2a048e1
commit ce4a081155
2 changed files with 6 additions and 0 deletions

View file

@ -1680,6 +1680,10 @@ void PeerListContent::mousePressReleased(Qt::MouseButton button) {
_controller->rowClicked(row);
}
}
} else if (button == Qt::MiddleButton && pressed == _selected) {
if (auto row = getRow(pressed.index)) {
_controller->rowMiddleClicked(row);
}
}
}

View file

@ -482,6 +482,8 @@ public:
}
virtual void rowClicked(not_null<PeerListRow*> row) = 0;
virtual void rowMiddleClicked(not_null<PeerListRow*> row) {
}
virtual void rowRightActionClicked(not_null<PeerListRow*> row) {
}