From 4cb8ec6a3271560753df4ebd679c027d9347d140 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 18 Oct 2011 09:48:34 +0200 Subject: [PATCH] fix short cut in text editor Only should switch to overwrite mode. is supposed to paste text. Change-Id: I66dd94d210488312a222a408cddb793451d14580 Reviewed-by: Leandro T. C. Melo --- src/plugins/texteditor/basetexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index fa41f7151d7..fafb6685f55 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -1771,7 +1771,7 @@ void BaseTextEditorWidget::keyPressEvent(QKeyEvent *e) break; case Qt::Key_Insert: if (ro) break; - if ((e->modifiers() & (Qt::ControlModifier | Qt::AltModifier)) == 0) { + if (e->modifiers() == Qt::NoModifier) { if (inOverwriteMode) { d->m_autoCompleter->setAutoParenthesesEnabled(d->autoParenthesisOverwriteBackup); d->m_autoCompleter->setSurroundWithEnabled(d->surroundWithEnabledOverwriteBackup);