Fixed cancel reply with Esc in general monoforum section.

This commit is contained in:
23rd
2026-02-05 10:05:00 +03:00
committed by John Preston
parent 61e3c5d730
commit bb5e765cfe
@@ -399,6 +399,13 @@ HistoryWidget::HistoryWidget(
}, _field->lifetime());
_field->cancelled(
) | rpl::on_next([=] {
if (_peer->amMonoforumAdmin()) {
QWidget::setEnabled(false);
crl::on_main([=] {
QWidget::setEnabled(true);
QWidget::setFocus();
});
}
escape();
}, _field->lifetime());
_field->tabbed(