This can be scripted with something like
Code:
on *:dialog:dname:sclick:1:{
    did $iif($did(1,$did(1).csel).cstate,-u,-c) $dname 1 $did(1).csel
}
on *:dialog:dname:dclick:1:{
    did $iif($did(1,$did(1).csel).cstate,-c,-u) $dname 1 $did(1).csel
}

Note that this isn't perfect as doing the actual change requires a double click. Alternatively, right click (rclick event) could be an option to actually make the change.