mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Fixed ability to copy selected text with presented compose search.
This commit is contained in:
parent
1b6a7fafa8
commit
5df2a048e1
1 changed files with 7 additions and 3 deletions
|
@ -1930,7 +1930,7 @@ void HistoryWidget::activate() {
|
|||
|
||||
void HistoryWidget::setInnerFocus() {
|
||||
if (_list) {
|
||||
if (isSearching()) {
|
||||
if (isSearching() && !_nonEmptySelection) {
|
||||
_composeSearch->setInnerFocus();
|
||||
} else if (isChoosingTheme()) {
|
||||
_chooseTheme->setFocus();
|
||||
|
@ -8422,7 +8422,11 @@ void HistoryWidget::confirmDeleteSelected() {
|
|||
|
||||
void HistoryWidget::escape() {
|
||||
if (_composeSearch) {
|
||||
_composeSearch->hideAnimated();
|
||||
if (_nonEmptySelection) {
|
||||
clearSelected();
|
||||
} else {
|
||||
_composeSearch->hideAnimated();
|
||||
}
|
||||
} else if (_chooseForReport) {
|
||||
controller()->clearChooseReportMessages();
|
||||
} else if (_nonEmptySelection && _list) {
|
||||
|
@ -8522,7 +8526,7 @@ void HistoryWidget::updateTopBarSelection() {
|
|||
updateHistoryGeometry();
|
||||
if (!controller()->isLayerShown()
|
||||
&& !Core::App().passcodeLocked()) {
|
||||
if (isSearching()) {
|
||||
if (isSearching() && !_nonEmptySelection) {
|
||||
_composeSearch->setInnerFocus();
|
||||
} else if (_nonEmptySelection
|
||||
|| (_list && _list->wasSelectedText())
|
||||
|
|
Loading…
Add table
Reference in a new issue