mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-07-02 20:31:43 +00:00
input: ignore wake key dispatch
This commit is contained in:
+3
-1
@@ -1869,7 +1869,9 @@ void loop() {
|
||||
handleSerialCommands();
|
||||
|
||||
// 1. Input polling
|
||||
bool screenWasOn = powerMgr.isScreenOn();
|
||||
inputManager.update();
|
||||
bool wakeOnlyInput = !screenWasOn && inputManager.hadStrongActivity();
|
||||
if (inputManager.hadStrongActivity()) {
|
||||
powerMgr.activity(); // Keyboard/touch: wake from any state
|
||||
} else if (inputManager.hadActivity()) {
|
||||
@@ -1884,7 +1886,7 @@ void loop() {
|
||||
}
|
||||
|
||||
// 3. Key event dispatch
|
||||
if (inputManager.hasKeyEvent()) {
|
||||
if (inputManager.hasKeyEvent() && !wakeOnlyInput) {
|
||||
const KeyEvent& evt = inputManager.getKeyEvent();
|
||||
|
||||
// Help overlay intercepts all keys when visible
|
||||
|
||||
Reference in New Issue
Block a user