Commit b2918893 authored by Gabriel de Dietrich's avatar Gabriel de Dietrich Committed by The Qt Project
Browse files

RadioButton: Fix keyboard toggle behavior


Change-Id: I9f7ccec13cfd2a60b17ee10c8a3ffa44a5d7e40f
Reviewed-by: default avatarMitch Curtis <mitch.curtis@digia.com>
parent bdc87295
No related merge requests found
Showing with 2 additions and 1 deletion
......@@ -142,7 +142,8 @@ Control {
Keys.onReleased: {
if (event.key === Qt.Key_Space && !event.isAutoRepeat && mouseArea.keyPressed) {
mouseArea.keyPressed = false;
__cycleStatesHandler();
if (!exclusiveGroup || !checked)
__cycleStatesHandler();
clicked();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment