1 From 3aef45a3d030e7e723a30b30b901f6c22e7eeadb Mon Sep 17 00:00:00 2001
2 From: Minkyeong Kim <minkyeong.kim@samsung.com>
3 Date: Tue, 19 Mar 2013 10:46:43 +0900
4 Subject: [PATCH] JQM Support accessibility for textinput
7 .../js/widgets/forms/textinput.js | 15 +++++++++++++++
8 1 files changed, 15 insertions(+), 0 deletions(-)
10 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js
11 index 05b1b03..8f939b1 100644
12 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js
13 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js
14 @@ -39,6 +39,21 @@ $.widget( "mobile.textinput", $.mobile.widget, {
16 focusedEl = input.addClass("ui-input-text ui-body-"+ theme );
18 + switch ( input.attr( "type" ) ) {
25 + input.attr( { "role" : "textbox", "aria-label" : "Keyboard opened" } );
28 + if ( input.prop( "tagName" ).toLowerCase() === "textarea" ) {
29 + input.attr( { "role" : "textbox", "aria-label" : "Keyboard opened" } );
33 // XXX: Temporary workaround for issue 785 (Apple bug 8910589).
34 // Turn off autocorrect and autocomplete on non-iOS 5 devices
35 // since the popup they use can't be dismissed by the user. Note