From a51e639d81b445ad00c5403198e0c1f6c18ed303 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 14 May 2025 17:48:17 +0100 Subject: [PATCH] input: disallow virtual keyboards from changing LED state (#10402) --- src/managers/input/InputManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 68769987..cd603ca5 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1368,7 +1368,7 @@ void CInputManager::destroyTabletPad(SP pad) { } void CInputManager::updateKeyboardsLeds(SP pKeyboard) { - if (!pKeyboard) + if (!pKeyboard || pKeyboard->isVirtual()) return; std::optional leds = pKeyboard->getLEDs();