and my tabs are dynamic, so they can get added and...
# tornadofx
b
and my tabs are dynamic, so they can get added and removed
d
Do you track the visible tab? The way I've seen events handled in the past is to use ID's and check in the subscribe if you should handle the event based on the ID passed. Perhaps you could publish the event with the ID of the visible tab, and then only the visible tab would handle the event.
b
I have tabs in tabs
and the keyboard event is coming from stage
so with a single layer of tabs it is really easy
oh ok I see what you mean
that should work
so I made an event with a nullable parameter
RunQuery() would get to the initial tabpane
if the pane is active, it will fire a RunQuery(activefragment)
that will then get handled by the second level of pane but only in the active tab
that works well
d
Haha sorry I was driving home. My idea worked for you though? Seems like you talked it out with yourself 🙂
b
absolutely, pure rubber ducking
😀 1
c
my example of a selected tab responding to a global F5 refresh didn't work?
b
works with a single level of tabs