fix: Radio Settings/SYS module version info lockup (#1901)
Fix SYS>VERSION>Modules / RX version - and pressing "PAGE>" or "PAGE<" and then press enter to EXIT, could result on EM.
This commit is contained in:
@@ -173,6 +173,16 @@ class versionDialog: public Dialog
|
|||||||
Dialog::checkEvents();
|
Dialog::checkEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HARDWARE_KEYS)
|
||||||
|
void onEvent(event_t event) override
|
||||||
|
{
|
||||||
|
if (event == EVT_KEY_BREAK(KEY_EXIT) ||
|
||||||
|
event == EVT_KEY_BREAK(KEY_ENTER)) {
|
||||||
|
deleteLater();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
rect_t rect;
|
rect_t rect;
|
||||||
TextButton * exitButton;
|
TextButton * exitButton;
|
||||||
|
|||||||
Reference in New Issue
Block a user