fix(lua): send EVT_VIRTUAL_EXIT only on short EXIT press (#2573)

Fixes #2436
This commit is contained in:
Raphael Coeffic
2022-10-17 22:11:56 +10:00
committed by GitHub
parent 58866c1889
commit 4c1cebe0f7
2 changed files with 12 additions and 8 deletions
+1
View File
@@ -145,6 +145,7 @@ void LuaEventHandler::onCancel()
void LuaEventHandler::onEvent(event_t event)
{
if (event == EVT_KEY_LONG(KEY_EXIT)) killEvents(KEY_EXIT);
luaPushEvent(event);
}