added tabindex attr to page titles so we can direct focus there when pages are shown.

This commit is contained in:
scottjehl 2010-10-10 17:57:35 -04:00
parent 66099f7418
commit 580c140311

View file

@ -57,7 +57,7 @@ $.widget( "mobile.page", $.mobile.widget, {
$headeranchors.buttonMarkup();
//page title
$this.children( ":header" ).addClass( "ui-title" );
$this.children( ":header" ).addClass( "ui-title" ).attr( "tabindex" , "0");
} else if ( role === "page" || role === "content" ) {
$this.addClass( "ui-body-" + (theme || "c") );
}