Added compose AI apply shortcut command.

This commit is contained in:
23rd
2026-05-26 21:15:41 +03:00
parent eb31bda16b
commit 50b13b2bed
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -735,6 +735,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_shortcuts_just_send" = "Just send";
"lng_shortcuts_silent_send" = "Silent send";
"lng_shortcuts_schedule" = "Schedule";
"lng_shortcuts_ai_compose_apply" = "Apply AI style to text";
"lng_shortcuts_read_chat" = "Mark chat as read";
"lng_shortcuts_archive_chat" = "Archive chat";
"lng_shortcuts_media_fullscreen" = "Toggle video fullscreen";
+2
View File
@@ -132,6 +132,7 @@ const auto CommandByName = base::flat_map<QString, Command>{
{ u"message"_q , Command::JustSendMessage },
{ u"message_silently"_q , Command::SendSilentMessage },
{ u"message_scheduled"_q , Command::ScheduleMessage },
{ u"ai_compose_apply"_q , Command::ComposeAiApplyInPlace },
{ u"media_viewer_video_fullscreen"_q , Command::MediaViewerFullscreen },
{ u"show_scheduled"_q , Command::ShowScheduled },
{ u"archive_chat"_q , Command::ArchiveChat },
@@ -155,6 +156,7 @@ const base::flat_map<Command, QString> &CommandNames() {
Command::JustSendMessage,
Command::SendSilentMessage,
Command::ScheduleMessage,
Command::ComposeAiApplyInPlace,
Command::MediaViewerFullscreen,
Command::ShowScheduled,
Command::ArchiveChat,
+1
View File
@@ -68,6 +68,7 @@ enum class Command {
JustSendMessage,
SendSilentMessage,
ScheduleMessage,
ComposeAiApplyInPlace,
RecordVoice,
RecordRound,
@@ -110,6 +110,8 @@ struct Labeled {
{ C::SendSilentMessage, tr::lng_shortcuts_silent_send() },
{ C::ScheduleMessage, tr::lng_shortcuts_schedule() },
separator,
{ C::ComposeAiApplyInPlace, tr::lng_shortcuts_ai_compose_apply() },
separator,
{ C::RecordVoice, tr::lng_shortcuts_record_voice_message() },
{ C::RecordRound, tr::lng_shortcuts_record_round_message() },
separator,