Element focus utility

See the original posting on DZone Python

I’ve recently been looking at retrofitting keyboard navigation support to JS Bin, but I was immediately struck by the totally lack of visibility on what was in focus.

Sure, this is a short-coming of the original design and bad choises I had made with JS Bin’s code base. Perhaps you can see from the animation below, when the body is in focus, tabbing is focusing something but until I actually tab…