Example usage for javafx.scene.input MouseEvent isControlDown

List of usage examples for javafx.scene.input MouseEvent isControlDown

Introduction

In this page you can find the example usage for javafx.scene.input MouseEvent isControlDown.

Prototype

public final boolean isControlDown() 

Source Link

Document

Whether or not the Control modifier is down on this event.

Usage

From source file:view.EditorView.java

@FXML
void scrollPaneOnMouseReleased(MouseEvent event) {
    if (!event.isControlDown() & !unselectingDisabled) {
        FOKLogger.finest(MainWindow.class.getName(), "Unselected all rooms through clicking the scroll pane");
        unselectEverything();/*from   ww  w  .  j a  va 2 s  . co  m*/
    }

    unselectingDisabled = false;
}