mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
feat: select multiple chats by holding ctrl or shift in forward box
This commit is contained in:
parent
a8fb7cd225
commit
3f5f17705d
1 changed files with 6 additions and 1 deletions
|
@ -2313,7 +2313,12 @@ QPointer<Ui::BoxContent> ShowForwardMessagesBox(
|
|||
if (showLockedError(row) || (count && row->peer()->isForum())) {
|
||||
return;
|
||||
} else if (!count || row->peer()->isForum()) {
|
||||
ChooseRecipientBoxController::rowClicked(row);
|
||||
if (base::IsCtrlPressed() || base::IsShiftPressed()) {
|
||||
delegate()->peerListSetRowChecked(row, !row->checked());
|
||||
_selectionChanges.fire({});
|
||||
} else {
|
||||
ChooseRecipientBoxController::rowClicked(row);
|
||||
}
|
||||
} else if (count) {
|
||||
delegate()->peerListSetRowChecked(row, !row->checked());
|
||||
_selectionChanges.fire({});
|
||||
|
|
Loading…
Add table
Reference in a new issue