mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 05:29:23 +00:00
Added Enter shortcut to EditForumTopicBox for confirmation.
This commit is contained in:
parent
a38dcb6ee5
commit
a26bae70c7
@ -19,6 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "data/data_forum_topic.h"
|
||||
#include "data/data_session.h"
|
||||
#include "data/stickers/data_custom_emoji.h"
|
||||
#include "base/event_filter.h"
|
||||
#include "base/random.h"
|
||||
#include "base/qt_signal_producer.h"
|
||||
#include "chat_helpers/emoji_list_widget.h"
|
||||
@ -482,6 +483,9 @@ void EditForumTopicBox(
|
||||
state->defaultIcon.current().colorId,
|
||||
};
|
||||
}, title->lifetime());
|
||||
title->submits() | rpl::start_with_next([box] {
|
||||
box->triggerButton(0);
|
||||
}, title->lifetime());
|
||||
|
||||
if (!topic || !topic->isGeneral()) {
|
||||
Ui::AddDividerText(top, tr::lng_forum_choose_title_and_icon());
|
||||
|
Loading…
x
Reference in New Issue
Block a user