(In reply to Geoff Lankow (:darktrojan) from comment #2)
Comment on attachment 9205598 [details]
Bug 1695098 - Shift focus on tab switch. r?aleca
Does this feel good to you? Sure it's better than nothing, but is it right?
Thank you for tackling this, Geoff, you rock! From reading the code, this should feel quite awesome (remember focus of the old tab and restore that when you come back to it), and is very much in line with popular bug 487386 - tabs should maintain exactly what they had when you return to them.
(In reply to Alessandro Castellani (:aleca) from comment #3)
One thing that we should definitely implement here is setting the focus on the first focusable item inside a newly opened Tab.
E.g.: When the user opens the calendar for the first time, the focus should be moved on the first available calendar slot (or maybe the calendar list?).
I think that's a case to case decision to take - initial tab focus should be as useful as possible (and yeah, somewhere to the top). A good example is Options tab where we implemented initial focus on the Search box (which also happens to be the topmost item, but one could argue that the first element would be the
General category element on the left). Maybe search boxes are pretty good candidates for initial focus if present.