forked from qt-creator/qt-creator
TextEditor: fix updating completions after cursor navigation
Notify the assistant that something has changed after cursor movement shortcuts. Task-number: QTCREATORBUG-24077 Fixes: QTCREATORBUG-24071 Change-Id: Ic956c08140c47a8edc9603227008062a7ab95fa0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -641,7 +641,10 @@ bool GenericProposalWidget::eventFilter(QObject *o, QEvent *e)
|
|||||||
case Qt::Key_End:
|
case Qt::Key_End:
|
||||||
case Qt::Key_Backspace:
|
case Qt::Key_Backspace:
|
||||||
// We want these navigation keys to work in the editor.
|
// We want these navigation keys to work in the editor.
|
||||||
break;
|
QApplication::sendEvent(const_cast<QWidget *>(d->m_underlyingWidget), e);
|
||||||
|
if (isVisible())
|
||||||
|
d->m_assistant->notifyChange();
|
||||||
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Only forward keys that insert text and refine the completion.
|
// Only forward keys that insert text and refine the completion.
|
||||||
|
|||||||
Reference in New Issue
Block a user