onMousePressed
fun Node.onMousePressed(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(MouseEvent) -> Unit)
See also
Node.setOnMousePressed
fun Scene.onMousePressed(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(MouseEvent) -> Unit)
See also
Scene.setOnMousePressed