mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 11:33:25 -08:00
[UI] Prevent Tab from moving focus when no completion popup
This commit is contained in:
parent
7b8d86f45a
commit
bc8289e48f
1 changed files with 3 additions and 1 deletions
|
|
@ -123,10 +123,12 @@ void LineEditCompleter::keyPressEvent(QKeyEvent *event)
|
||||||
insertCompletion(info.completer, completionText);
|
insertCompletion(info.completer, completionText);
|
||||||
}
|
}
|
||||||
hideCompleterPopups();
|
hideCompleterPopups();
|
||||||
setFocus();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// If no popup is visible, prevent Tab from moving focus
|
||||||
|
event->ignore();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LineEditUnfocusable::keyPressEvent(event);
|
LineEditUnfocusable::keyPressEvent(event);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue