Do the provisions of the District of Columbia Code that restrict the licensing of handguns and require licensed firearms kept in the home to be kept nonfunctional violate the Second Amendment?

Facts of the case

Provisions of the District of Columbia Code made it illegal to carry an unregistered firearm and prohibited the registration of handguns, though the chief of police could issue one-year licenses for handguns. The Code also contained provisions that required owners of lawfully registered firearms to keep them unloaded and disassembled or bound by a trigger lock or other similar device unless the firearms were located in a place of business or being used for legal recreational activities.

Dick Anthony Heller was a D.C. special police officer who was authorized to carry a handgun while on duty. He applied for a one-year license for a handgun he wished to keep at home, but his application was denied. Heller sued the District of Columbia. He sought an injunction against the enforcement of the relevant parts of the Code and argued that they violated his Second Amendment right to keep a functional firearm in his home without a license. The district court dismissed the complaint. The U.S. Court of Appeals for the District of Columbia Circuit reversed and held that the Second Amendment protects the right to keep firearms in the home for the purpose of self-defense, and the District of Columbia’s requirement that firearms kept in the home be nonfunctional violated that right.

Question

Do the provisions of the District of Columbia Code that restrict the licensing of handguns and require licensed firearms kept in the home to be kept nonfunctional violate the Second Amendment?