Add files via upload

This commit is contained in:
SimpSon
2026-10-22 23:03:44 +02:00
committed by GitHub
parent b751956466
commit 2d2360fc75
+3 -3
View File
@@ -1291,9 +1291,10 @@ void UITask::loop() {
_lock_seq_ms = 0; _lock_seq_ms = 0;
} }
enqueueKey(checkDisplayOn(KEY_ENTER)); enqueueKey(checkDisplayOn(KEY_ENTER));
}
}; };
int ev = user_btn.check(); int ev = user_btn.check();
#ifdef UI_ENTER_DOUBLE_BACK #ifdef UI_ENTER_DOUBLE_BACK
// For a joystick without a reachable Back button: a double click on Enter goes // For a joystick without a reachable Back button: a double click on Enter goes
// back. Multi-click delays a single Enter by the click window. Where text is // back. Multi-click delays a single Enter by the click window. Where text is
// typed (on-screen keyboard, PIN pad) or the lock sequence is counting, a // typed (on-screen keyboard, PIN pad) or the lock sequence is counting, a
@@ -1307,10 +1308,9 @@ void UITask::loop() {
} }
ev = BUTTON_EVENT_NONE; ev = BUTTON_EVENT_NONE;
} }
#endif #endif
if (ev == BUTTON_EVENT_CLICK) { if (ev == BUTTON_EVENT_CLICK) {
enterClick(); enterClick();
}
} else if (ev == BUTTON_EVENT_LONG_PRESS) { } else if (ev == BUTTON_EVENT_LONG_PRESS) {
enqueueKey(handleLongPress(KEY_ENTER)); // REVISIT: could be mapped to different key code enqueueKey(handleLongPress(KEY_ENTER)); // REVISIT: could be mapped to different key code
} }