CesiumGS/cesium
ScreenSpaceEventHandler support for multiple KeyboardEventModifier keys at once
クローズ
#13,300 opened on 2026/03/13
category - cameragood first issuetype - enhancement
Repository metrics
- Stars
- (11,758 個のスター)
- PR merge metrics
- (平均マージ 15d 12h) (30d で 23 merged PRs)
説明
Feature
Currently the ScreenSpaceEventHandler can only listen for mouse events with either Alt, Shift or Ctrl modifier keys.
It would be nice to be able to add a listener for when multiple modifier keys are held at the same time, like this:
const listener = () => {console.log("SHIFT and ALT are held")}
screenSpaceEventHandler.setInputAction(
listener,
ScreenSpaceEventType.LEFT_DOWN,
[KeyboardEventModifier.ALT, KeyboardEventModifier.SHIFT]
)