Patent ID: 8144462

Claim:
A lock applied in an electronic device, the electronic device comprising: a main body and a display, the display comprising a first hook able to pass through the main body, the lock comprising: a base, the base defines a first recessed portion, a pair of first resisting blocks is mounted on opposite sidewalls of the first recessed portion; a first rack slidably connected to the base and comprising a second hook engageable with the first hook, the first rack comprises a first limiting projection, the first limiting projection stays within the first recessed portion and can be attracted by the first resisting blocks; a shaft secured to the base; a first gear rotatably connected to the shaft and engaging the first rack, wherein the first gear defines a first latching slot to receive a portion of a key, which allows the first gear to rotate together with the key to cause the first rack to slide, the second hook is moveable together with the first rack to a position where the second hook engages the first hook to lock the display to the main body; and a second rack and a second gear, wherein the second rack is slideably connected to the base and comprises a rechargeable battery, the second gear is rotatably fixed in place on the shaft and engages the second rack, the second gear defines a second latching slot to receive the portion of the key, which allows the second gear to rotate with the key to cause the second rack to slide, the rechargeable battery is moveable together with the second rack to a position where the rechargeable battery can provide power to the electronic device.