Patent ID: 7654634

Claim:
An image forming apparatus having a carriage with a recording head having a nozzle for ejecting an ink, comprising: a capping member configured to cover the nozzle of the recording head; a locking member configured to lock the carriage at a predetermined position; an interlocking mechanism configured to perform at least one of locking and unlocking the carriage with the locking member according to a corresponding one of an operation of contacting the nozzle with the capping member and an operation of separating the capping member from the nozzle; a cap holder configured to hold the capping member, the cap holder comprising a first engaging member configured to engage with the locking member; and a biasing member configured to bias the locking member in a direction which causes the carriage to be locked at the predetermined position, wherein the locking member comprises a second engaging member configured to engage with the first engaging member in a direction which causes the carriage to be unlocked from the predetermined position, and the first engaging member is disengaged from the second engaging member while the capping member covers the nozzle of the recording head.