tornadofx / tornadofx / javafx.scene.control.ListView / onUserSelect

onUserSelect

fun <T> ListView<T>.onUserSelect(clickCount: Int = 2, action: (T) -> Unit): Unit

Execute action when the enter key is pressed or the mouse is clicked

Parameters

clickCount - The number of mouse clicks to trigger the action

action - The runnable to execute on select