Skip to content

Commit

Permalink
move focus to sample button onclick
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Nov 7, 2023
1 parent a30adcb commit a68936d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inst/qml/common/LDGenerateDisplayData.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ Section
id: simulateNowButton
name: "simulateNowButton"
label: qsTr("Draw samples")
onClicked: if (simulateNow.checked) simulateNow.checked = false; else simulateNow.checked = true
onClicked:
{
simulateNowButton.forceActiveFocus();
simulateNow.checked = !simulateNow.checked

}
}
CheckBox { name: "simulateNow"; visible: false; id: simulateNow }
}
Expand Down

0 comments on commit a68936d

Please sign in to comment.