Better `onselect` behavior in Sandcastle.