input: disallow virtual keyboards from changing LED state (#10402)

This commit is contained in:
Vaxry 2025-05-14 17:48:17 +01:00 committed by GitHub
parent 59b2340680
commit a51e639d81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1368,7 +1368,7 @@ void CInputManager::destroyTabletPad(SP<CTabletPad> pad) {
} }
void CInputManager::updateKeyboardsLeds(SP<IKeyboard> pKeyboard) { void CInputManager::updateKeyboardsLeds(SP<IKeyboard> pKeyboard) {
if (!pKeyboard) if (!pKeyboard || pKeyboard->isVirtual())
return; return;
std::optional<uint32_t> leds = pKeyboard->getLEDs(); std::optional<uint32_t> leds = pKeyboard->getLEDs();