Patent ID: 8676250

Claim:
A portable electronic device comprising: a body; an operation unit having a plurality of keys; a determination unit that determines an attitude of the body; a setting unit that sets predetermined keys among the plurality of keys in the operation unit as an image capturing command key for performing an image capturing command, according to the attitude of the body determined by the determination unit; an image capturing unit that captures an image according to the image capturing command by way of the image capturing command key set by the setting unit; and an inclination angle detection unit that detects an inclination angle of the body relative to a predetermined reference direction, wherein the determination unit determines the attitude of the body according to the inclination angle detected by the inclination angle detection unit, wherein the setting unit sets a first key among the predetermined keys as the image capturing command key when the inclination angle is substantially 90 degrees clockwise when the body is seen from a face on which the operation unit is provided, and sets a second key, which is different from the first key, among the predetermined keys as the image capturing command key when the inclination angle is substantially 90 degrees anti-clockwise when the body is seen from a face on which the operation unit is provided, and wherein the plurality of keys is arranged on a face of the body in a rectangular shape with predetermined spacing, and the first key and the second key are located at corners of the face, respectively.