Commit 4cb8ec6a authored by Joerg Bornemann's avatar Joerg Bornemann Committed by Leandro T. C. Melo
Browse files

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: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent ccf8d6d6
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment