mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[UI] Restore Tab behavior to match original (handle in focusOut)
This commit is contained in:
parent
9011d9d4ca
commit
4b7aa8f1c2
1 changed files with 2 additions and 6 deletions
|
|
@ -114,12 +114,8 @@ void LineEditCompleter::keyPressEvent(QKeyEvent *event)
|
|||
}
|
||||
|
||||
if (event->key() == Qt::Key_Tab) {
|
||||
bool popupVisible = hasVisibleCompleterPopup();
|
||||
if (popupVisible) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
event->ignore();
|
||||
// Let Tab proceed normally; focusOutEvent will handle completion if popup is visible
|
||||
LineEditUnfocusable::keyPressEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue