mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Attempt to fix selection loss on Ctrl.
This commit is contained in:
parent
b5d3391956
commit
3aebf59a61
1 changed files with 4 additions and 1 deletions
|
@ -1806,7 +1806,10 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived(
|
|||
void HistoryWidget::tryProcessKeyInput(not_null<QKeyEvent*> e) {
|
||||
e->accept();
|
||||
keyPressEvent(e);
|
||||
if (!e->isAccepted() && _canSendTexts && _field->isVisible()) {
|
||||
if (!e->isAccepted()
|
||||
&& _canSendTexts
|
||||
&& _field->isVisible()
|
||||
&& !e->text().isEmpty()) {
|
||||
_field->setFocusFast();
|
||||
QCoreApplication::sendEvent(_field->rawTextEdit(), e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue