gadget (n.)
1886, gadjet (but said to date back to 1850s), sailors' slang word for any small mechanical thing or part of a ship for which they lacked, or forgot, a name; perhaps from French gâchette "catchpiece of a mechanism" (15c.), diminutive of gâche "staple of a lock."