Safety switch incorporated into the trigger