2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Accept typing codes in settings.

This commit is contained in:
John Preston
2018-09-06 16:48:01 +03:00
parent a7b1d83a3c
commit 50b0b61118
8 changed files with 222 additions and 171 deletions

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "settings/settings_main.h"
#include "settings/settings_common.h"
#include "settings/settings_codes.h"
#include "boxes/abstract_box.h"
#include "boxes/language_box.h"
#include "boxes/confirm_box.h"
@@ -291,6 +292,11 @@ Main::Main(
setupContent(controller);
}
void Main::keyPressEvent(QKeyEvent *e) {
CodesFeedString(e->text());
return Section::keyPressEvent(e);
}
void Main::setupContent(not_null<Window::Controller*> controller) {
const auto content = Ui::CreateChild<Ui::VerticalLayout>(this);