fix(color): Disable invalid PG_UP and PG_DN handling on widget setup screen (#2630)
This commit is contained in:
@@ -134,3 +134,12 @@ void SetupWidgetsPage::deleteLater(bool detach, bool trash)
|
|||||||
|
|
||||||
storageDirty(EE_MODEL);
|
storageDirty(EE_MODEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetupWidgetsPage::onEvent(event_t event)
|
||||||
|
{
|
||||||
|
if (event == EVT_KEY_FIRST(KEY_PGUP) || event == EVT_KEY_FIRST(KEY_PGDN)) {
|
||||||
|
killEvents(event);
|
||||||
|
} else {
|
||||||
|
FormWindow::onEvent(event);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ class SetupWidgetsPage : public FormWindow
|
|||||||
protected:
|
protected:
|
||||||
uint8_t customScreenIdx;
|
uint8_t customScreenIdx;
|
||||||
unsigned savedView = 0;
|
unsigned savedView = 0;
|
||||||
|
void onEvent(event_t event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SetupWidgetsPageSlot : public Button
|
class SetupWidgetsPageSlot : public Button
|
||||||
|
|||||||
Reference in New Issue
Block a user