Tell me, please, how to specify in the handler click on the specific key:

  1. left mouse button in onMouseClicked ;
  2. is the ctrl key pressed in onKeyPressed ?

    1 answer 1

     if ( mouseEvent.getButton() == MouseButton.PRIMARY ) {/**/} if ( keyEvent.isControlDown() ){/**/}