mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-06-02 03:53:42 +02:00
Added compose AI apply shortcut command.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user