mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added Enter shortcut to EditForumTopicBox for confirmation.
This commit is contained in:
parent
a38dcb6ee5
commit
a26bae70c7
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "data/data_forum_topic.h"
|
#include "data/data_forum_topic.h"
|
||||||
#include "data/data_session.h"
|
#include "data/data_session.h"
|
||||||
#include "data/stickers/data_custom_emoji.h"
|
#include "data/stickers/data_custom_emoji.h"
|
||||||
|
#include "base/event_filter.h"
|
||||||
#include "base/random.h"
|
#include "base/random.h"
|
||||||
#include "base/qt_signal_producer.h"
|
#include "base/qt_signal_producer.h"
|
||||||
#include "chat_helpers/emoji_list_widget.h"
|
#include "chat_helpers/emoji_list_widget.h"
|
||||||
|
@ -482,6 +483,9 @@ void EditForumTopicBox(
|
||||||
state->defaultIcon.current().colorId,
|
state->defaultIcon.current().colorId,
|
||||||
};
|
};
|
||||||
}, title->lifetime());
|
}, title->lifetime());
|
||||||
|
title->submits() | rpl::start_with_next([box] {
|
||||||
|
box->triggerButton(0);
|
||||||
|
}, title->lifetime());
|
||||||
|
|
||||||
if (!topic || !topic->isGeneral()) {
|
if (!topic || !topic->isGeneral()) {
|
||||||
Ui::AddDividerText(top, tr::lng_forum_choose_title_and_icon());
|
Ui::AddDividerText(top, tr::lng_forum_choose_title_and_icon());
|
||||||
|
|
Loading…
Add table
Reference in a new issue