1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Accessibility: Set checked state in ButtonAccessibilityHandler::getCurrentState() if button is part of a radio group

This commit is contained in:
ed 2021-06-04 16:31:55 +01:00
parent 27ead031c0
commit ffdfb5b436

View file

@ -715,7 +715,7 @@ public:
{
auto state = AccessibilityHandler::getCurrentState();
if (button.getClickingTogglesState())
if (button.getClickingTogglesState() || button.getRadioGroupId() != 0)
{
state = state.withCheckable();