I found a problem in the focus mechanism:
if a dockable contains a focus child component,
the focus stays on that component when the dockable gets minimized.
Or at least the focus is not transferred to another dockable,
which I think is the expected behavior.
I.e. from the focus mechanism point of view, minimize action
should have the same effect as closing a dockable.
You can reproduce it in the Size & Color example.
Put focus on one of the color choosing buttons, press enter - color chooser appears.
Minimize the dockable, no other dockable has focus, pressing enter has no effect.
Normalize the dockable, the same color choosing button has focus.
You are right, that is not pretty. I’ve added a feature which will automatically transfer focus to a not-minimized Dockable. I’ll upload the new version later this day.
I noticed one problem: if you minimize a non-focused dockable
it manages to steal the focus. I guess pressing the minimize
button triggers focus transfer but the focus arrives only after the dockable is minimized.
That sounds like a reasonable explanation. And not that easy to fix. I guess the best solution would be just not to transfer focus at all in such a situation.
Hmpf, it was easier to fix than expected. At the end the focus jumps around a bit, but users should not notice as the focus jumps back to its “original” position after a few milliseconds.