Editor: Close proposal widget when text is pasted

Already worked with the shortcut defined in the settings, but not with
the standard shortcuts defined by QKeySequence.

Task-number: QTCREATORBUG-16586
Change-Id: I4dc02e29ee5d273c3bfc9de28f52e90cffc2397c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2016-08-25 09:17:05 +02:00
parent fef76f0284
commit 15ecdd1e23

View File

@@ -621,7 +621,7 @@ bool GenericProposalWidget::eventFilter(QObject *o, QEvent *e)
default: default:
// Only forward keys that insert text and refine the completion. // Only forward keys that insert text and refine the completion.
if (ke->text().isEmpty()) if (ke->text().isEmpty() && !(ke == QKeySequence::Paste))
return true; return true;
break; break;
} }