@@ -86,6 +86,11 @@ void Widget::onEvent(event_t event)
|
||||
}
|
||||
#endif
|
||||
|
||||
void Widget::onCancel()
|
||||
{
|
||||
if (!fullscreen) Button::onCancel();
|
||||
}
|
||||
|
||||
void Widget::update()
|
||||
{
|
||||
auto container = dynamic_cast<WidgetsContainer*>(parent);
|
||||
|
||||
@@ -108,6 +108,7 @@ class Widget : public Button
|
||||
uint32_t focusGainedTS = 0;
|
||||
bool fullscreen = false;
|
||||
|
||||
void onCancel() override;
|
||||
void onLongPress() override;
|
||||
virtual void onFullscreen(bool enable) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user