When you disable a header of an accordion by means of getHeaderAt(index).enabled the navigation is disabled for the mouse (you cant click to the tab) but if you navigate with the keyboard (using arrows or pg up/ pg down) you can still navigate into the disabled pages of the accordion.

I show you here an approximation to the problem, extending the accordion to make an override to the keyDownHandler method and making functionality of our own to avoid this.

Original issue came from a requirement, and ideas came from Peter Ent’s Blog Entry, you’ll find a post with this code there, but few changes were made to fix some issues.

You will also see in my examples some images on my custom preloader, you can read more on preloaders in this Ted Patrick’s Article.
J0cks has been kind enough to let me use his art for this, in this article you’ll see Blue Skyline

Read more after jump.