He was about to tell me the secret _____ someone patted him on t

He was about to tell me the secret _____ someone patted him on the shoulder .

A.as

B.until

C.while

D.when

正确答案是D