Key Modifier with Orbit controls

Hi All,

I am looking at implementing the Orbit controls, but would like to customise the mouse buttons.

I can see there’s the following object…

controls.mouseButtons = {
LEFT: THREE.MOUSE.ROTATE,
MIDDLE: THREE.MOUSE.DOLLY,
RIGHT: THREE.MOUSE.PAN
}

which i can swap round no problem. But I would really like it so middle rotates (thats fine to do) but use CTRL+middle to pans.

What’s the cleanest way to implement key modifiers with the orbit controls?

It seems the default implementation already does this: https://jsfiddle.net/Lxvr8ujd/2/

In the fiddle, the camera pans when I press Ctrl and use the middle mouse button.

I was being thick. Thank you