Allow ctrl+6/7/8 to activate extra pinned chats.

Fixes #25647.
This commit is contained in:
John Preston 2023-01-03 09:59:42 +04:00
parent eb6c350e72
commit b962efeca3
3 changed files with 9 additions and 0 deletions

View file

@ -370,6 +370,9 @@ void Manager::fillDefaults() {
set(u"ctrl+3"_q, Command::ChatPinned3); set(u"ctrl+3"_q, Command::ChatPinned3);
set(u"ctrl+4"_q, Command::ChatPinned4); set(u"ctrl+4"_q, Command::ChatPinned4);
set(u"ctrl+5"_q, Command::ChatPinned5); set(u"ctrl+5"_q, Command::ChatPinned5);
set(u"ctrl+6"_q, Command::ChatPinned6);
set(u"ctrl+7"_q, Command::ChatPinned7);
set(u"ctrl+8"_q, Command::ChatPinned8);
auto &&folders = ranges::views::zip( auto &&folders = ranges::views::zip(
kShowFolder, kShowFolder,

View file

@ -34,6 +34,9 @@ enum class Command {
ChatPinned3, ChatPinned3,
ChatPinned4, ChatPinned4,
ChatPinned5, ChatPinned5,
ChatPinned6,
ChatPinned7,
ChatPinned8,
ShowAllChats, ShowAllChats,
ShowFolder1, ShowFolder1,

View file

@ -3739,6 +3739,9 @@ void InnerWidget::setupShortcuts() {
Command::ChatPinned3, Command::ChatPinned3,
Command::ChatPinned4, Command::ChatPinned4,
Command::ChatPinned5, Command::ChatPinned5,
Command::ChatPinned6,
Command::ChatPinned7,
Command::ChatPinned8,
}; };
auto &&pinned = ranges::views::zip( auto &&pinned = ranges::views::zip(
kPinned, kPinned,