A non-transitory computer-readable recording medium causing a computer to realize a focus adjustment operation detection function in a case where a command stored in the recording medium is read by the computer, the focus adjustment operation detection function comprising the functions of:
- detecting a phase difference for each divided area of an image to be imaged by an image sensor which is configured to image an optical image passed through an imaging lens and has an imaging surface divided into a plurality of divided areas each of which includes a phase difference detection pixel, based on an output of the phase difference detection pixel;
- detecting a change in an angle of view;
- and
- detecting whether or not a focus adjustment operation of the imaging lens is performed based on an amount of change in the phase difference for each divided area, in a case where the detected angle of view is maintained at a constant value.