Updated Friday 4 p.m.

HARTFORD — Several Democratic lawmakers have filed bills to ban “gay and transgender panic” as a criminal defense.

Senate President Pro Tempore Martin Looney, D-New Haven, introduced this legislation, as did Rep. Raghib Allie-Brennan, D-Bethel, and Rep. Jeff Currey, D-East Hartford. Allie-Brennan and Currey are the General Assembly’s only openly gay lawmakers.

Looney, an attorney who practices criminal law, wants state statutes to be amended so a criminal defendant may not claim the “shock” of learning that a person was gay or transgender to justify or excuse the violence perpetrated against that person.

For up-to-date information on public policy issues, sign up for the CT Politics newsletter.

California was the first to ban the defense in 2014, followed by Illinois.

Looney said Thursday he was unaware of the number of occasions the defense has been used in Connecticut.

“I think it is needed everywhere basically to make sure this is not a way for people to use bigotry as a defense for the commission of heinous crimes,” said Looney. “Theoretically, you could say that if this defense is allowed, someone could say they have a visceral hatred of a certain racial or ethnic group, and then that would excuse an act of violence against that group.”

The bill will be considered by the legislature’s Judiciary Committee. Similar legislation has been discussed in other states.

LGBTQ individuals have seen increased protections and rights in Connecticut in recent years. Former Gov. Dannel P. Malloy signed legislation banning conversion therapy for LGBTQ individuals in 2017.

Editor’s note: An earlier version of this story incorrectly stated that Malloy signed legislation in 2017 banning discrimination on the basis of gender identity and expression. In 2017, Malloy signed a bill banning conversion therapy.

emunson@hearstmediact.com; Twitter: @emiliemunson