Thanks! I didn't realize there was a setting for it in the options panel.
Didn't see the "always do this action" check box either, so it wasn't permanent.
However, I was sneaking up on a merchant and hit the attack target option in my excitement. So.... instead of being able to submerge and conduct a close in shot with torpedoes before it spotted me, the crew says "HERE WE ARE!!!" by opening fire with the deck gun at 5000+ meters.