Patent ID: 8781540

Claim:
A portable electronic device, comprising: an immovable body; a movable body; a sliding module disposed between the immovable body and the movable body, the movable body slidable with respect to the immovable body between a first position and a second position by means of the sliding module, and the sliding module comprising: a fixing frame fixed to the immovable body; a movable frame fixed to the movable body and slidably coupled to the fixing frame; and an elastic element having a fixing end fixed to the fixing frame and a movable end fixed to the movable frame, wherein when the movable body slides from the first position to the second position, the movable end relatively moves from a first stop position to a second stop position along a moving path, the distance from the orthographic projection of the fixing end on the moving path to the first stop position is larger than the distance from the orthographic projection of the fixing end on the moving path to the second stop position, the elastic element has a first rod connected to the movable end, a second rod connected to the fixing end, and an elastic main body connected between the first rod and the second rod, the second rod is longer than the first rod, the elastic element is covered by the fixing frame when the movable body slides with respect to the immovable body at the second position, the immovable body has a keyboard, when the movable body slides to the first position, the keyboard is covered by the movable body, and when the movable body slides to the second position, the keyboard is exposed outside of the movable body; and a restraint mechanism including: a blocker on the movable frame; a magnetic element disposed on the immovable body; and a restraint leaf spring having a fixing end fixed to the fixing frame and a free end having a first edge, wherein when the movable body slides between the first position and the second position, the free end of the restraint leaf spring is attached to the fixing frame by means of the magnetic attraction force of the magnetic element, and when the movable body rotates between the second position and the third position, the free end of the restraint leaf spring is not attracted by the magnetic element and released from the fixing frame, so that the first edge is against the blocker for resisting a pushing force exerted by the blocker, and thereby the movable body is restricted from sliding with respect to the immovable body.