mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-11 01:10:13 +00:00
Submit by keyboard in scheduled section.
This commit is contained in:
parent
ca2692473d
commit
253816641c
@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/special_buttons.h"
|
||||
#include "lang/lang_keys.h"
|
||||
#include "core/event_filter.h"
|
||||
#include "core/qt_signal_producer.h"
|
||||
#include "history/history.h"
|
||||
#include "chat_helpers/tabbed_panel.h"
|
||||
#include "chat_helpers/tabbed_section.h"
|
||||
@ -90,7 +91,13 @@ rpl::producer<> ComposeControls::cancelRequests() const {
|
||||
}
|
||||
|
||||
rpl::producer<> ComposeControls::sendRequests() const {
|
||||
return _send->clicks() | rpl::map([] { return rpl::empty_value(); });
|
||||
auto toEmpty = rpl::map([] { return rpl::empty_value(); });
|
||||
auto submits = Core::QtSignalProducer(
|
||||
_field.get(),
|
||||
&Ui::InputField::submitted);
|
||||
return rpl::merge(
|
||||
_send->clicks() | toEmpty,
|
||||
std::move(submits) | toEmpty);
|
||||
}
|
||||
|
||||
rpl::producer<> ComposeControls::attachRequests() const {
|
||||
|
Loading…
Reference in New Issue
Block a user