Patent ID: 8587396

Claim:
An electronic device comprising: a first body; a magnetic inductive switch disposed in said first body; a second body movably connected to said first body, and including a housing and an electronic element module that is disposed in said housing and that is electrically connected to said magnetic inductive switch; a magnetic element disposed in said second body for actuating said magnetic inductive switch to send a control signal to said electronic element module when said magnetic element is adjacent to said magnetic inductive switch; and a retaining mechanism including a retaining casing disposed on and cooperating with said housing of said second body to define a receiving space therebetween to receive said magnetic element therein, and having an opening that is in spatial communication with said receiving space, a connecting member disposed on said housing of said second body, and a first blocking member connected to said housing of said second body by said connecting member, and including a blocking wall disposed adjacent to said opening so as to prevent removal of said magnetic element from said receiving space through said opening.