Patent ID: 8636348

Claim:
An inkjet printer that performs printing using ink supplied from an ink cartridge, the inkjet printer comprising: a cartridge mounting portion into which and from which the ink cartridge can be inserted and removed; and a detection portion that is arranged in the cartridge mounting portion and that includes a detection switch which has a housing and a leading end portion and which detects whether the ink cartridge is inserted in the cartridge mounting portion in accordance with a displacement amount of the leading end portion when the leading end portion is pressed, the leading end portion being penetratingly supported by the housing via a first elastic member so as to be slidingly displaceable such that the leading end portion protrudes to the outside from the housing, and a protruding portion which is provided on the leading end portion side of the detection switch via a second elastic member so as to be displaceable and which protrudes toward the cartridge mounting portion, the second elastic member having an elastic modulus that is smaller than an elastic modulus of the first elastic member and causing the first elastic member to be deformed when the second elastic member is deformed by at least a predetermined amount, a displacement amount of the protruding portion when the second elastic member is deformed by at least the predetermined amount is greater than the displacement amount of the leading end portion.