checkbox-group: Write captures for focused-hard state

Close #752