mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user