summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-05-14 17:48:17 +0100
committerGitHub <noreply@github.com>2025-05-14 17:48:17 +0100
commita51e639d81b445ad00c5403198e0c1f6c18ed303 (patch)
tree4c44c812a4311d792b099571fa234bf31b4d3604 /src/managers/input/InputManager.cpp
parent59b23406804d0c6aa37dc40c271852e697759663 (diff)
input: disallow virtual keyboards from changing LED state (#10402)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
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<CTabletPad> pad) {
}
void CInputManager::updateKeyboardsLeds(SP<IKeyboard> pKeyboard) {
- if (!pKeyboard)
+ if (!pKeyboard || pKeyboard->isVirtual())
return;
std::optional<uint32_t> leds = pKeyboard->getLEDs();