Clicking in the image with the Eyedropper tool selects the foreground color. Option (Mac)/ Alt (Win) -click will select the background color.