Skip to content

ScreenSpaceEventHandler support for multiple KeyboardEventModifier keys at once #13300

@Bob-vdV

Description

@Bob-vdV

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]
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions