ToggleLocked function

Learn technical details about the ToggleLocked function.