form window: forward events to parent

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent b44ba6c60c
commit 5052b762c9
2 changed files with 0 additions and 22 deletions
-18
View File
@@ -362,21 +362,3 @@ void FormGroup::onEvent(event_t event)
}
}
#endif
#if defined(HARDWARE_KEYS)
void FormWindow::onEvent(event_t event)
{
TRACE_WINDOWS("%s received event 0x%X", getWindowDebugString("FormWindow").c_str(), event);
if (event == EVT_KEY_BREAK(KEY_EXIT) && (windowFlags & FORM_FORWARD_FOCUS) && first) {
onKeyPress();
Window * currentFocus = getFocus();
first->setFocus(SET_FOCUS_FIRST);
if (getFocus() != currentFocus) {
return;
}
}
FormGroup::onEvent(event);
}
#endif
-4
View File
@@ -211,8 +211,4 @@ class FormWindow : public FormGroup
protected:
void paint(BitmapBuffer *) override {}
#if defined(HARDWARE_KEYS)
void onEvent(event_t event) override;
#endif
};