From 15ecdd1e238d7932a83333c369f2ad61148f2f5f Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 25 Aug 2016 09:17:05 +0200 Subject: [PATCH] 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 --- src/plugins/texteditor/codeassist/genericproposalwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/codeassist/genericproposalwidget.cpp b/src/plugins/texteditor/codeassist/genericproposalwidget.cpp index 4a1e1eff671..5e3a466aaf5 100644 --- a/src/plugins/texteditor/codeassist/genericproposalwidget.cpp +++ b/src/plugins/texteditor/codeassist/genericproposalwidget.cpp @@ -621,7 +621,7 @@ bool GenericProposalWidget::eventFilter(QObject *o, QEvent *e) default: // Only forward keys that insert text and refine the completion. - if (ke->text().isEmpty()) + if (ke->text().isEmpty() && !(ke == QKeySequence::Paste)) return true; break; }