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+4"_q, Command::ChatPinned4);
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(
kShowFolder,

View File

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

View File

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