Commit ee53ebbf authored by mae's avatar mae
Browse files

Fix inserting printable text with AltGt

Task: QTCREATORBUG-543
Reviewed-by: Tobias Hunger
parent aa5ce3b9
......@@ -1173,7 +1173,7 @@ void BaseTextEditor::keyPressEvent(QKeyEvent *e)
if (ro || e->text().isEmpty() || !e->text().at(0).isPrint()) {
QPlainTextEdit::keyPressEvent(e);
} else if ((e->modifiers() & Qt::ControlModifier) != Qt::ControlModifier){
} else if ((e->modifiers() & (Qt::ControlModifier|Qt::AltModifier)) != Qt::ControlModifier){
QTextCursor cursor = textCursor();
QString text = e->text();
QString autoText = autoComplete(cursor, text);
......
Markdown is supported
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