New #tabContent attribute value is a special handle so key access allows entering in the content area.

This commit is contained in:
mgalli%geckonnection.com 2005-10-07 22:11:47 +00:00
Родитель 1a33934d95
Коммит f762fbe2ee
1 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -323,10 +323,19 @@ function eventHandlerMenu(e) {
ruleElement=findRuleById(document.getElementById(outnavTarget).getAttribute("accessprevrule"),"accessprevrule");
}
var tempElement=ruleElement.getAttribute("accessfocus");
if(tempElement.indexOf("#")>-1) {
if(tempElement=="#tabContainer") {
if(ruleElement.tabContainer) {
ruleElement.selectedTab.focus();
}
if(ruleElement.tabContainer) {
ruleElement.selectedTab.focus();
}
}
if(tempElement=="#tabContent") {
document.commandDispatcher.advanceFocusIntoSubtree(document.getElementById("content"));
document.commandDispatcher.advanceFocus();
}
} else {
document.getElementById(tempElement).focus();
}