Update RingQt - Code Editor - Avoid automatic completion when pressing TAB two times.
@@ -202,10 +202,12 @@ void CodeEditor::keyPressEvent(QKeyEvent *e)
switch (e->key()) {
case Qt::Key_Enter:
case Qt::Key_Return:
+ e->ignore();
+ return; // let the completer do default behavior
case Qt::Key_Escape:
case Qt::Key_Tab:
case Qt::Key_Backtab:
- e->ignore();
+ c->popup()->hide();
return; // let the completer do default behavior
default:
break;
