Battery info check inputs for battery+about mode

This commit is contained in:
Willy-JL
2023-10-24 01:10:47 +01:00
parent 9c96c75dcb
commit b8db2a9f73
@@ -151,7 +151,10 @@ static bool battery_info_input_callback(InputEvent* event, void* context) {
BatteryInfo* battery_info = context;
if(event->type == InputTypeShort) {
bool about_battery;
with_view_model(
battery_info->view, BatteryInfoModel * model, { about_battery = model->alt; }, false);
if(about_battery && event->type == InputTypeShort) {
if(event->key == InputKeyLeft) {
event->key = InputKeyBack;
} else if(event->key == InputKeyRight) {