This commit is contained in:
fourtf 2020-09-25 22:59:20 +02:00
parent 45a1034edf
commit 5fc495a073

View file

@ -163,14 +163,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
return; return;
} }
// (hemirt) if (!event->text().isEmpty())
// this resets the selection in the completion list, it should probably only
// trigger on actual chat input (space, character) and not on every key
// input (pressing alt for example) (fourtf) fixed for shift+tab, there
// might be a better solution but nobody is gonna bother anyways
if (event->key() != Qt::Key_Shift && event->key() != Qt::Key_Control &&
event->key() != Qt::Key_Alt && event->key() != Qt::Key_Super_L &&
event->key() != Qt::Key_Super_R)
{ {
this->completionInProgress_ = false; this->completionInProgress_ = false;
} }