Attempt to fix selection loss on Ctrl.
This commit is contained in:
parent
b5d3391956
commit
3aebf59a61
|
@ -1806,7 +1806,10 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived(
|
||||||
void HistoryWidget::tryProcessKeyInput(not_null<QKeyEvent*> e) {
|
void HistoryWidget::tryProcessKeyInput(not_null<QKeyEvent*> e) {
|
||||||
e->accept();
|
e->accept();
|
||||||
keyPressEvent(e);
|
keyPressEvent(e);
|
||||||
if (!e->isAccepted() && _canSendTexts && _field->isVisible()) {
|
if (!e->isAccepted()
|
||||||
|
&& _canSendTexts
|
||||||
|
&& _field->isVisible()
|
||||||
|
&& !e->text().isEmpty()) {
|
||||||
_field->setFocusFast();
|
_field->setFocusFast();
|
||||||
QCoreApplication::sendEvent(_field->rawTextEdit(), e);
|
QCoreApplication::sendEvent(_field->rawTextEdit(), e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue