2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Added ability to customize shortcuts for silent or scheduled messages.

This commit is contained in:
23rd
2019-12-23 18:14:12 +03:00
committed by John Preston
parent 19fd3a15e1
commit 7d519990b2
9 changed files with 42 additions and 7 deletions

View File

@@ -1847,7 +1847,7 @@ void SendFilesBox::setupShadows(
void SendFilesBox::prepare() {
_send = addButton(tr::lng_send_button(), [=] { send({}); });
if (_sendType == Api::SendType::Normal) {
SetupSendMenu(
SetupSendMenuAndShortcuts(
_send,
[=] { return _sendMenuType; },
[=] { sendSilent(); },