Replaced focus handling with LVGL groups
This commit is contained in:
committed by
Raphael Coeffic
parent
4af17b49c8
commit
4c8bb99e73
@@ -1027,7 +1027,7 @@ static bool resumeLua(bool init, bool allowLcdUsage)
|
||||
events[EVENT_BUFFER_SIZE - 1] = 0;
|
||||
|
||||
if (evt == EVT_KEY_LONG(KEY_EXIT)) {
|
||||
killEvents(evt);
|
||||
// killEvents(evt);
|
||||
luaState = INTERPRETER_RELOAD_PERMANENT_SCRIPTS;
|
||||
}
|
||||
}
|
||||
@@ -1220,7 +1220,7 @@ static bool resumeLua(bool init, bool allowLcdUsage)
|
||||
|
||||
if (evt == EVT_KEY_LONG(KEY_EXIT)) {
|
||||
TRACE("Script force exit");
|
||||
killEvents(evt);
|
||||
// killEvents(evt);
|
||||
luaEmptyEventBuffer();
|
||||
luaState = INTERPRETER_RELOAD_PERMANENT_SCRIPTS;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ class LuaWidget: public Widget
|
||||
friend class LuaWidgetFactory;
|
||||
|
||||
public:
|
||||
LuaWidget(const WidgetFactory * factory, FormGroup * parent, const rect_t & rect, WidgetPersistentData * persistentData, int luaWidgetDataRef):
|
||||
LuaWidget(const WidgetFactory * factory, Window* parent, const rect_t & rect, WidgetPersistentData * persistentData, int luaWidgetDataRef):
|
||||
Widget(factory, parent, rect, persistentData),
|
||||
luaWidgetDataRef(luaWidgetDataRef),
|
||||
errorMessage(nullptr)
|
||||
@@ -325,7 +325,7 @@ class LuaWidgetFactory: public WidgetFactory
|
||||
unregisterWidget(this);
|
||||
}
|
||||
|
||||
Widget * create(FormGroup * parent, const rect_t & rect, Widget::PersistentData * persistentData, bool init=true) const override
|
||||
Widget * create(Window* parent, const rect_t & rect, Widget::PersistentData * persistentData, bool init=true) const override
|
||||
{
|
||||
if (lsWidgets == 0) return 0;
|
||||
initPersistentData(persistentData, init);
|
||||
|
||||
Reference in New Issue
Block a user