Keyboard shortcuts on locked widgets are not disabled
For example following code:
endButton = addChild (std::make_unique<cPushButton> (cPosition (391, 4), ePushButtonType::HudEnd, lngPack.i18n ("Text~Others~End"), FONT_LATIN_NORMAL)); endButton->addClickShortcut (KeysList.keyEndTurn); endButton->lock();
The button is not clickable by mouse, because it is locked. But the keyboard shotcut is still able to trigger the clicked event.