mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09: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);
|
||||
}
|
||||
hideCompleterPopups();
|
||||
setFocus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
// If no popup is visible, prevent Tab from moving focus
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
LineEditUnfocusable::keyPressEvent(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue