Hello, it is possible to collect layout events by ...
# tornadofx
m
Hello, it is possible to collect layout events by logger, for application telemetry, with tornadoFX?
b
yes, what is the problem?
m
Copy code
How would it be? Is there an example who can share?
hang the listener on the root node
m
Copy code
root.addEventHandler()?
b
Yes, not using event.consume()
m
Thaks, I will test
It is not possible to get the click events of the buttons inside the root panel?
Copy code
root.addEventFilter(MouseEvent.MOUSE_CLICKED) {
    println("Mouse Click")
    println(it.button.name)
}

root.addEventFilter(KeyEvent.KEY_PRESSED) {
    println("Key press")
    println(it.text)
}
Sample: Root > Button x