refactor: key handling (#4849)
This commit is contained in:
@@ -1657,11 +1657,11 @@ Stops key state machine. See [Key Events](../key_events.md) for the detailed des
|
||||
*/
|
||||
static int luaKillEvents(lua_State * L)
|
||||
{
|
||||
#if defined(KEYS_GPIO_REG_PAGE)
|
||||
#if defined(KEYS_GPIO_REG_MENU)
|
||||
#define IS_MASKABLE(key) \
|
||||
((key) != KEY_EXIT && (key) != KEY_ENTER && \
|
||||
((scriptInternalData[0].reference == SCRIPT_STANDALONE) || \
|
||||
(key) != KEY_PAGE))
|
||||
(key) != KEY_PAGEDN))
|
||||
#else
|
||||
#define IS_MASKABLE(key) ((key) != KEY_EXIT && (key) != KEY_ENTER)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user