Prevents an infinite loop when a FormGroup has no widget which can accept the focus
This commit is contained in:
+1
-1
@@ -196,7 +196,7 @@ void FormGroup::setFocus(uint8_t flag)
|
||||
else if (next) {
|
||||
next->setFocus(SET_FOCUS_FORWARD);
|
||||
}
|
||||
else if (!(windowFlags & NO_FOCUS)) {
|
||||
else {
|
||||
clearFocus();
|
||||
focusWindow = this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user