According to the embodiment described above, the absolute coordinate setting and the relative coordinate setting may be switched from one to another in accordance with a type of a touch operation performed by the user, and accordingly, an operation of shifting a position may be performed with high operability. When the position is to be considerably shifted, an operation of double-tap is performed so that the absolute coordinate setting is entered. In this case, an operation of shifting a touch position to be performed a large number of times in the relative coordinate setting may be omitted, and an AF position may be quickly shifted close to a desired position. Furthermore, when a current position is to be shifted by a small amount in an X direction in the relative coordinate setting, an AF position is not immediately changed to a touch position unlike the case of the absolute coordinate setting. Therefore, a touch position may be shifted to a desired position by shifting the touch position in the X direction even if the touch position is shifted from a Y coordinate of a current AF position. Specifically, in a case where the user intends to shift an AF position in a certain position and the AF position is actually shifted to the position, the AF position may be immediately shifted to the desired position by double-tap, and in a case where the user intends to shift the AF position from a current position by a certain amount, the AF position may be shifted by the desired amount by shifting a touch position. Furthermore, the AF position may be shifted by double-tap in the absolute coordinate setting, and therefore, the possibility of a shift of the AF position due to a nose which may not finely perform a touch operation is reduced. Furthermore, the AF position is not shifted without shifting a touch position even in the relative coordinate setting, and therefore, the possibility of a shift of an AF position due to a nose which may not shift a touch position is reduced. Accordingly, the possibility of an undesired process may be reduced.