forked from qt-creator/qt-creator
fix <S-Ins> short cut in text editor
Only <Ins> should switch to overwrite mode. <S-Ins> is supposed to paste text. Change-Id: I66dd94d210488312a222a408cddb793451d14580 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
committed by
Leandro T. C. Melo
parent
ccf8d6d660
commit
4cb8ec6a32
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user