working in 2d animation I got stuck. I could draw fine, and I could select grease pencil objects and go to all the modes, but all modes apart from draw mode seems stuck. I could not select or edit some strokes in edit mode. The same strokes seemed locked in sculpt mode. And in draw mode I could not erase them. But this was only with some strokes not all. It seemed to have no link to the layers or anything I could find. and some of the strokes that I could not edit, where highlighted as though I had selected them, but I could not deselect them.
I have been stuck on this all day but asking so I can going to reply to myself as solved it. But could not find anything on the internet about this. So hoping this helps someone else