From 580c1403116b09efdef4d1cdbf0344d1b2e300eb Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sun, 10 Oct 2010 17:57:35 -0400 Subject: [PATCH] added tabindex attr to page titles so we can direct focus there when pages are shown. --- js/jquery.mobile.page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.page.js b/js/jquery.mobile.page.js index 116246ac..833e7f49 100644 --- a/js/jquery.mobile.page.js +++ b/js/jquery.mobile.page.js @@ -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") ); }