Skip to content

Commit

Permalink
Possible fix for #1052
Browse files Browse the repository at this point in the history
  • Loading branch information
FayCross committed Sep 15, 2021
1 parent 246ff21 commit bae15df
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -2471,14 +2471,16 @@ function x_changePageStep6() {
}

function x_focusPageContents(){
//focus pageContents after page load and page change
if ( self == top ) {
//focus pageContents after page load and page change
$('#pageContents').attr('tabIndex', 0).focus();
//#pageContents:focus is set to none in default theme
//uncomment the line below to see the focus outline
//or use a theme where this isn't hidden
//$('#pageContents:focus').css('outline','solid');
if(x_pageInfo[x_currentPage].type=="adaptiveContent"){
$('#adaptiveContentMain').attr('tabIndex', 0).focus();
if(x_pageInfo[x_currentPage].type=="adaptiveContent"){
$('#adaptiveContentMain').attr('tabIndex', 0).focus();
}
}
}

Expand Down

0 comments on commit bae15df

Please sign in to comment.