2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

Don't remove field focus on empty text selection.

Fixes #4467.
This commit is contained in:
John Preston
2018-03-08 16:03:59 +03:00
parent 56fece6216
commit 2b9133be90

View File

@@ -2261,7 +2261,7 @@ auto HistoryInner::getSelectionState() const
if (selected.first->allowsForward()) { if (selected.first->allowsForward()) {
++result.canForwardCount; ++result.canForwardCount;
} }
} else { } else if (selected.second.from != selected.second.to) {
result.textSelected = true; result.textSelected = true;
} }
} }