diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 901c161e..76d4ff9a 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -354,20 +354,13 @@ //direct focus to the page title, or otherwise first focusable element function reFocus( page ) { - var lastClicked = page.jqmData( "lastClicked" ); + var pageTitle = page.find( ".ui-title:eq(0)" ); - if( lastClicked && lastClicked.length ) { - lastClicked.focus(); + if( pageTitle.length ) { + pageTitle.focus(); } - else { - var pageTitle = page.find( ".ui-title:eq(0)" ); - - if( pageTitle.length ) { - pageTitle.focus(); - } - else{ - page.find( focusable ).eq( 0 ).focus(); - } + else{ + page.focus(); } }