Patent ID: 7319460

Claim:
An electronic device, comprising: a main body comprising an opening, a slot and a receiving space communicating with the opening and the slot; and a stylus comprising a first body, a latching mechanism and a resilient member disposed between the first body and the latching mechanism, wherein the first body is movable with respect to the latching mechanism along a longitudinal axis, the first body and the latching mechanism are restricted within the receiving space when the latching mechanism engages the slot, and the resilient member forces the latching mechanism protruded from the main body along the longitudinal axis when the latching mechanism is separated from the slot; wherein the latching mechanism comprises a cantilever portion having a first protrusion movable perpendicular to the longitudinal axis to alternatively latch the slot by deforming the cantilever portion, and a second protrusion projecting through the opening and adjacent to the main body when the latching mechanism engages the slot, wherein when the second protrusion is pressed, the cantilever portion is deformed to separate the first protrusion from the slot.