mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Improved focus widgets within chat when foreground box is presented.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user