Popup: reverse orientation bug has been fixed
[platform/framework/web/web-ui-fw.git] / libs / patch / 0035-JQM-Support-accessibility-for-textinput.patch
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
5
6 ---
7  .../js/widgets/forms/textinput.js                  |   15 +++++++++++++++
8  1 files changed, 15 insertions(+), 0 deletions(-)
9
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, {
15  
16                 focusedEl = input.addClass("ui-input-text ui-body-"+ theme );
17  
18 +               switch ( input.attr( "type" ) ) {
19 +                       case "text":
20 +                       case "password":
21 +                       case "number":
22 +                       case "email":
23 +                       case "url":
24 +                       case "tel":
25 +                               input.attr( { "role" : "textbox", "aria-label" : "Keyboard opened" } );
26 +                               break;
27 +                       default:
28 +                               if ( input.prop( "tagName" ).toLowerCase() === "textarea" ) {
29 +                                       input.attr( { "role" : "textbox", "aria-label" : "Keyboard opened" } );
30 +                               }
31 +               }
32 +
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
36 -- 
37 1.7.5.4
38