Ignore Shift+Tab in chat widget input for now.

Don't autocomplete if Ctrl is pressed
This commit is contained in:
Rasmus Karlsson 2017-08-13 15:13:32 +02:00
parent 12812e24ff
commit c9df6ddaab

View file

@ -71,9 +71,15 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
{
event->ignore();
keyPressed(event);
this->keyPressed(event);
if (event->key() == Qt::Key_Tab) {
if (event->key() == Qt::Key_Backtab) {
// Ignore for now. We want to use it for autocomplete later
return;
}
if (event->key() == Qt::Key_Tab &&
(event->modifiers() & Qt::ControlModifier) == Qt::NoModifier) {
QString currentCompletionPrefix = this->textUnderCursor();
if (!currentCompletionPrefix.size()) {