Code for testing languages is F7-F6-F7-F8
| 56 | |
| 57 | // Code for testing languages is F7-F6-F7-F8 |
| 58 | void 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 | |
| 74 | base::options::toggle AutoScrollInactiveChat({ |
| 75 | .id = kOptionAutoScrollInactiveChat, |
no test coverage detected