It's a bit cheating, but what do you think of the ...
# tornadofx
t
It's a bit cheating, but what do you think of the followig function:
Copy code
fun KeyFrame(time: Duration,eventHandler: (ActionEvent)->Unit) = KeyFrame(time, EventHandler { it-> eventHandler(it)}, *arrayOfNulls<KeyValue>(0))