I got some user feedback that the tab order (read:...
# tornadofx
c
I got some user feedback that the tab order (read: focus traversal) didn't make much sense from their perspective. I went shopping on stackoverflow trying to figure out how to override it but didn't find anything I was really happy with. I came up with an extension function that makes it pretty easy to override. I think it might make sense to contribute to TornadoFX. Here's what a call looks like from inside a View builder:
Copy code
textfield() {
  overrideFocusTraversal(
    next = { find<AnotherView>().itsFirstTextField },
    previous = { find<AnotherView>().itsLastTextField }
  )
}
button("Users want this skipped when they press tab")