"What matters most to the Sultan (Sharafuddin Idris Shah) is the responsible and trustworthy administration of the state, and I told him that I would work until I am no longer Mentri Besar," said Khalid.
Khalid spoke to the media after accompanying the Sultan for the breaking of fast at the Kampung Assam Jawa mosque here on Wednesday night.
Asked if he would step down if the PKR leadership told him to, Khalid said Selangor enactments had to be followed.
Khalid said he would continue to lead the state until official procedures to unseat him were followed.
He was reported saying, "I respect the political decision of PKR in fielding party president Datuk Seri Dr Wan Azizah Wan Ismail as the candidate for Mentri Besar".
“However, I strictly stand by the state constitution which stipulates specific procedures for the appointment or replacement of the Mentri Besar," said Khalid.