A trigger safety mechanism for a handheld weapon, in particular for a semiautomatic long weapon, with a safety shaft, which carries a control cam, and via an actuation lever can be rotated from a safety position into a firing position and back, wherein the trigger safety mechanism can abut against a trigger lever that can be pivoted about a trigger axis, and wherein in a cocked state of the handheld weapon the safety shaft blocks the trigger lever in the safety position, and releases it in the firing position, characterised in that, it furthermore comprises at least one spring-loaded spacer element, wherein - in the cocked state of the handheld weapon the spring-loaded spacer element is arranged between the trigger lever and the safety shaft, located in its safety position, as a result of which a pivoting of the trigger lever towards the safety shaft is blocked, wherein - the control cam is formed by at least one recess in the safety shaft, designed at least in some sections in the form of a spiral, which recess, in the firing position of the safety shaft, in the cocked state of the handheld weapon, is facing towards the spacer element, such that the spacer element only offsets a first part of a clearance between the safety shaft and the trigger lever, and a trigger clearance remains, wherein - in the uncocked state of the handheld weapon the spacer element, by means of a changeover of the safety shaft from its firing position into its safety position by means of the recess, designed at least in some sections in the form of a spiral, is displaced axially relative to the safety shaft against the spring force into an axial blocking region, in which the spacer element offsets a clearance between the trigger lever and the safety shaft, such that a pivoting of the trigger lever towards the safety shaft is blocked, and wherein - in the cocked state of the handheld weapon a movement of the spacer element relative to the safety shaft located in the safety position from the blocking region in the direction of the spring force is released, so that the spacer element moves back from the blocking region and blocks a pivoting of the trigger lever. - in the cocked state of the handheld weapon the spring-loaded spacer element is arranged between the trigger lever and the safety shaft, located in its safety position, as a result of which a pivoting of the trigger lever towards the safety shaft is blocked, wherein - the control cam is formed by at least one recess in the safety shaft, designed at least in some sections in the form of a spiral, which recess, in the firing position of the safety shaft, in the cocked state of the handheld weapon, is facing towards the spacer element, such that the spacer element only offsets a first part of a clearance between the safety shaft and the trigger lever, and a trigger clearance remains, wherein - in the uncocked state of the handheld weapon the spacer element, by means of a changeover of the safety shaft from its firing position into its safety position by means of the recess, designed at least in some sections in the form of a spiral, is displaced axially relative to the safety shaft against the spring force into an axial blocking region, in which the spacer element offsets a clearance between the trigger lever and the safety shaft, such that a pivoting of the trigger lever towards the safety shaft is blocked, and wherein - in the cocked state of the handheld weapon a movement of the spacer element relative to the safety shaft located in the safety position from the blocking region in the direction of the spring force is released, so that the spacer element moves back from the blocking region and blocks a pivoting of the trigger lever.