onLeftMouseUp event only when Ctrl is held?

Hi all,

I'm currently trying to only perform an event of onLeftMouseUp when the ctrl button is being held at the same time, however it doesn't look like CesiumViewerWidget class really has a way to determine it. Am I missing something?

You can add a callback for ctrl-left mouse up event with:

var handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);


function (event) {

var mousePosition = event.position;

// …

}, Cesium.ScreenSpaceEventType.LEFT_UP, Cesium.KeyboardEventModifier.CTRL);


This works great. One issue though. I've added a new div to the viewport (sort of a custom display in the upper-right with my own functionality) and now I can't click on any of the <input type='text'> areas. I'm assuming because now that the handler is defined, a leftmousedown and leftmouseup have no actions tied to them, so nothing happens. Is there any way to define these with a default action?