Improved focus widgets within chat when foreground box is presented.

This commit is contained in:
23rd
2025-11-05 17:56:27 +03:00
parent 31ece2c26e
commit 080ecece66
2 changed files with 6 additions and 0 deletions
@@ -2045,6 +2045,9 @@ void HistoryWidget::activate() {
}
void HistoryWidget::setInnerFocus() {
if (!Ui::InFocusChain(this)) {
return;
}
if (_list) {
if (isSearching() && !_nonEmptySelection) {
_composeSearch->setInnerFocus();
@@ -2390,6 +2390,9 @@ void ChatWidget::checkActivation() {
}
void ChatWidget::doSetInnerFocus() {
if (!Ui::InFocusChain(this)) {
return;
}
if (_composeSearch
&& _inner->getSelectedText().rich.text.isEmpty()
&& _inner->getSelectedItems().empty()) {