PDA

View Full Version : TabPanel keyboard focus



Strock
26 Jun 2012, 6:29 AM
Hello. I've got a question. I have a TabPanel, and I want to do the following: after the active tab has been changed by user, he should be able to use Home/End/PgUp/PgDown keys to scroll long content in tab. In other words, maybe, simulate a mouse click inside tab (after click keyboard works, but not before). How do I do that? I've tried different approaches, finished with this:


listeners: {
tabchange: function(tabPanel, newCard, oldCard, eOpts) {
newCard.getFocusEl().set({tabIndex: 0});
newCard.focus();
//tabPanel.body.focus();
}
}

but still no luck. BTW, http://docs.sencha.com also has this interface bug (not sure if it's really a bug) - after you change active tab, keyboard doesn't work.

scottmartin
27 Jun 2012, 9:24 AM
Have you tried focusing a component on the tab instead of the tab itself?

Scott.