@@ -36,6 +36,12 @@ const auto AutoRepeatCommands = base::flat_set<Command>{
36
36
Command::ChatNext,
37
37
Command::ChatFirst,
38
38
Command::ChatLast,
39
+ Command::ChatScrollDown,
40
+ Command::ChatScrollUp,
41
+ Command::ChatScrollScreenDown,
42
+ Command::ChatScrollScreenUp,
43
+ Command::ChatScrollHalfScreenDown,
44
+ Command::ChatScrollHalfScreenUp,
39
45
};
40
46
41
47
const auto MediaCommands = base::flat_set<Command>{
@@ -73,6 +79,14 @@ const auto CommandByName = base::flat_map<QString, Command>{
73
79
{ u" previous_chat" _q , Command::ChatPrevious },
74
80
{ u" next_chat" _q , Command::ChatNext },
75
81
{ u" first_chat" _q , Command::ChatFirst },
82
+ { u" chat_scroll_down" _q , Command::ChatScrollDown },
83
+ { u" chat_scroll_up" _q , Command::ChatScrollUp },
84
+ { u" chat_scroll_screen_down" _q, Command::ChatScrollScreenDown },
85
+ { u" chat_scroll_screen_up" _q , Command::ChatScrollScreenUp },
86
+ { u" chat_scroll_half_screen_down" _q, Command::ChatScrollHalfScreenDown },
87
+ { u" chat_scroll_half_screen_up" _q , Command::ChatScrollHalfScreenUp },
88
+ { u" chat_scroll_top" _q , Command::ChatScrollTop },
89
+ { u" chat_scroll_bottom" _q, Command::ChatScrollBottom },
76
90
{ u" last_chat" _q , Command::ChatLast },
77
91
{ u" self_chat" _q , Command::ChatSelf },
78
92
@@ -130,6 +144,14 @@ const auto CommandNames = base::flat_map<Command, QString>{
130
144
{ Command::ChatFirst , u" first_chat" _q },
131
145
{ Command::ChatLast , u" last_chat" _q },
132
146
{ Command::ChatSelf , u" self_chat" _q },
147
+ { Command::ChatScrollDown , u" chat_scroll_down" _q },
148
+ { Command::ChatScrollUp , u" chat_scroll_up" _q },
149
+ { Command::ChatScrollScreenDown, u" chat_scroll_screen_down" _q },
150
+ { Command::ChatScrollScreenUp , u" chat_scroll_screen_up" _q },
151
+ { Command::ChatScrollHalfScreenDown, u" chat_scroll_half_screen_down" _q },
152
+ { Command::ChatScrollHalfScreenUp , u" chat_scroll_half_screen_up" _q },
153
+ { Command::ChatScrollTop , u" chat_scroll_top" _q },
154
+ { Command::ChatScrollBottom, u" chat_scroll_bottom" _q },
133
155
134
156
{ Command::FolderPrevious , u" previous_folder" _q },
135
157
{ Command::FolderNext , u" next_folder" _q },
@@ -396,6 +418,9 @@ void Manager::fillDefaults() {
396
418
set (u" ctrl+pgup" _q, Command::ChatPrevious);
397
419
set (u" alt+up" _q, Command::ChatPrevious);
398
420
421
+ set (u" pgup" _q, Command::ChatScrollScreenUp);
422
+ set (u" pgdown" _q, Command::ChatScrollScreenDown);
423
+
399
424
set (u" %1+tab" _q.arg (ctrl), Command::ChatNext);
400
425
set (u" %1+shift+tab" _q.arg (ctrl), Command::ChatPrevious);
401
426
set (u" %1+backtab" _q.arg (ctrl), Command::ChatPrevious);
0 commit comments