MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / FeedLangTestingKey

Function FeedLangTestingKey

Telegram/SourceFiles/mainwindow.cpp:58–72  ·  view source on GitHub ↗

Code for testing languages is F7-F6-F7-F8

Source from the content-addressed store, hash-verified

56
57// Code for testing languages is F7-F6-F7-F8
58void FeedLangTestingKey(int key) {
59 static auto codeState = 0;
60 if ((codeState == 0 && key == Qt::Key_F7)
61 || (codeState == 1 && key == Qt::Key_F6)
62 || (codeState == 2 && key == Qt::Key_F7)
63 || (codeState == 3 && key == Qt::Key_F8)) {
64 ++codeState;
65 } else {
66 codeState = 0;
67 }
68 if (codeState == 4) {
69 codeState = 0;
70 Lang::CurrentCloudManager().switchToTestLanguage();
71 }
72}
73
74base::options::toggle AutoScrollInactiveChat({
75 .id = kOptionAutoScrollInactiveChat,

Callers 1

eventFilterMethod · 0.85

Calls 1

switchToTestLanguageMethod · 0.80

Tested by

no test coverage detected