mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 13:37:43 +03:00
Fix focus traps
* Fix focus issues with new PasswordWidget * Fix focus wrapping when DatabaseTabWidget is not showing the tab bar * Fix focus wrapping in EditWidget views to move between category list and contents. This is not a perfect fix, but Qt has a mind of its own with these complex widgets. This will be fixed in future Ui improvements that move away from the category widget.
This commit is contained in:
parent
6f64c84c7d
commit
affff20b49
10 changed files with 64 additions and 51 deletions
|
@ -1641,7 +1641,7 @@ bool DatabaseWidget::focusNextPrevChild(bool next)
|
|||
// Find the next visible element in the sequence and set the focus
|
||||
while (idx >= 0 && idx < sequence.size()) {
|
||||
widget = sequence[idx];
|
||||
if (widget && widget->isVisible() && widget->height() > 0 && widget->width() > 0) {
|
||||
if (widget && widget->isVisible() && widget->isEnabled() && widget->height() > 0 && widget->width() > 0) {
|
||||
widget->setFocus();
|
||||
return widget;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue