From 5052b762c9c2df5ec99f8908a65f88f678e48601 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Thu, 28 Apr 2022 06:28:34 +0200 Subject: [PATCH] form window: forward events to parent --- radio/src/thirdparty/libopenui/src/form.cpp | 18 ------------------ radio/src/thirdparty/libopenui/src/form.h | 4 ---- 2 files changed, 22 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/form.cpp b/radio/src/thirdparty/libopenui/src/form.cpp index f6910d743..0a0c07a85 100644 --- a/radio/src/thirdparty/libopenui/src/form.cpp +++ b/radio/src/thirdparty/libopenui/src/form.cpp @@ -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 diff --git a/radio/src/thirdparty/libopenui/src/form.h b/radio/src/thirdparty/libopenui/src/form.h index 6e2952571..7d35ddc61 100644 --- a/radio/src/thirdparty/libopenui/src/form.h +++ b/radio/src/thirdparty/libopenui/src/form.h @@ -211,8 +211,4 @@ class FormWindow : public FormGroup protected: void paint(BitmapBuffer *) override {} - -#if defined(HARDWARE_KEYS) - void onEvent(event_t event) override; -#endif };