Lock rotary encoder to control headphone volume

I’d whish a user button, that locks the rotary encoder of my CQ12-T to control the headphone volume as long as the button is active.