widget settings & flight mode trims: set focus after form build
This commit is contained in:
committed by
Raphael Coeffic
parent
ed70eaca13
commit
72726b054e
@@ -144,6 +144,7 @@ struct FMTrimSettings : public Dialog {
|
|||||||
|
|
||||||
content->setWidth(LCD_W * 0.8);
|
content->setWidth(LCD_W * 0.8);
|
||||||
content->updateSize();
|
content->updateSize();
|
||||||
|
form->setFocus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -197,6 +198,8 @@ FlightModeEdit::FlightModeEdit(uint8_t index) :
|
|||||||
new FMTrimSettings(this, p_fm);
|
new FMTrimSettings(this, p_fm);
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
form->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
class FlightModeBtn: public Button
|
class FlightModeBtn: public Button
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ WidgetSettings::WidgetSettings(Window* parent, Widget* widget) :
|
|||||||
|
|
||||||
content->updateSize();
|
content->updateSize();
|
||||||
setCloseHandler([=]() { widget->update(); });
|
setCloseHandler([=]() { widget->update(); });
|
||||||
|
form->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HARDWARE_KEYS)
|
#if defined(HARDWARE_KEYS)
|
||||||
|
|||||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: d31a31992b...21e0147c0a
Reference in New Issue
Block a user