fix keyboard & touch behavior of custom checkboxes