Patent ID: 8705227

Claim:
A latching mechanism for latching a wrist rest to a keyboard, the keyboard comprising a front sidewall defining two latching holes, the latching mechanism comprising: an actuating member slidably coupled to the wrist rest, the actuating member comprising an abutting post, the actuating member capable of sliding between an unlatching position with the abutting post extending out of the wrist rest and a latching position with the abutting post being hidden in the wrist rest; and two hook members abutting an end of the actuating member away from the abutting post and capable of being driven by the actuating member to rotate relative to the wrist rest, each hook member comprising a hook, the hooks capable of extending out of the wrist rest to be latched to the latching holes when the hook members rotate; wherein when the wrist rest contacts the front sidewall, the actuating member is driven by the front sidewall to slide from the unlatching position to the latching position, the hook members are driven by the actuating member to rotate with the hooks extending out of the wrist rest to be latched to the latching holes; when the actuating member slides from the latching position to the unlatching position, the hook members is allowed to rotate with the hooks disengaging from the latching hole to retract into the wrist rest.