refactor: key handling (#4849)

This commit is contained in:
philmoz
2024-05-27 18:33:53 +10:00
committed by GitHub
parent b8a0038c68
commit e807ccbebf
101 changed files with 380 additions and 578 deletions
-7
View File
@@ -440,13 +440,6 @@ bool handleGui(event_t event)
TELEMETRY_SCREEN_TYPE(s_frsky_view) == TELEMETRY_SCREEN_TYPE_SCRIPT;
bool isStandalone = scriptInternalData[0].reference == SCRIPT_STANDALONE;
if ((isTelemView || isStandalone) && event) {
#if !defined(KEYS_GPIO_REG_PAGEUP)
// For radios with a single PAGE key, kill the
// EVT_KEY_BREAK event after a long press of the PAGE key.
if (event == EVT_KEY_LONG(KEY_PAGE)) {
killEvents(KEY_PAGE);
}
#endif
luaPushEvent(event);
}
refreshNeeded = luaTask(true);