Popup: IME hide when popup is closed
authorhjnim.kim <hjnim.kim@samsung.com>
Tue, 8 Jan 2013 04:51:06 +0000 (13:51 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 11 Jan 2013 08:40:54 +0000 (17:40 +0900)
IME hide(if popup has input text) when popup is closed
and related demo has been added
N_SE-18340

Change-Id: If91e99deb51ae5365486ac573b0d8fe87ab82ce9

demos/tizen-winsets/widgets/popupwindow/popup.html
libs/patch/0026-JQM-IME-hide-when-popup-is-closed.patch [new file with mode: 0644]

index 20b0882..a08b385 100755 (executable)
@@ -34,6 +34,7 @@
                        <li><a href="#center_liststyle_1btn" data-inline="true" data-rel="popup" data-position-to="window">Center_list style 1 button popup</a></li>
                        <li><a href="#center_liststyle_2btn" data-inline="true" data-rel="popup" data-position-to="window">Center_list style 2 button popup</a></li>
                        <li><a href="#center_liststyle_3btn" data-inline="true" data-rel="popup" data-position-to="window">Center_list style 3 button popup</a></li>
+                       <li><a href="#textbox_popup" data-inline="true" data-rel="popup" data-position-to="window">Popup has textbox</a></li>
                        <li><a href="#positionWindow" data-rel="popup" data-position-to="window">Position</a></li>
                </ul>
 
                        </div>
                </div>
 
+               <!-- textbox popup -->
+               <div id="textbox_popup" data-role="popup" class="center_title_2btn">
+                       <div class="ui-popup-title">
+                               <h1>PopupTest<h1>
+                       </div>
+                       <div class="ui-popup-text">
+                                               <input type="text" size="30" />
+                                               <input type="text" size="30" />
+                       </div>
+                                       <div class="ui-popup-button-bg">
+                                               <a data-role="button" data-rel="back" data-inline="true">OK</a>
+                                               <a data-role="button" data-rel="back" data-inline="true">Cancel</a>
+                                       </div>
+               </div>
+
                <div data-role="popup" id="positionWindow">
                        <p>I am positioned to the window.</p>
                </div>
diff --git a/libs/patch/0026-JQM-IME-hide-when-popup-is-closed.patch b/libs/patch/0026-JQM-IME-hide-when-popup-is-closed.patch
new file mode 100644 (file)
index 0000000..f733e78
--- /dev/null
@@ -0,0 +1,29 @@
+From 54ea1ae798681ee684f4419312ff9c35eef2ff3a Mon Sep 17 00:00:00 2001
+From: "hjnim.kim" <hjnim.kim@samsung.com>
+Date: Tue, 8 Jan 2013 14:48:57 +0900
+Subject: [PATCH] JQM IME hide when popup is closed
+
+libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
+
+Signed-off-by: hyunjung kim <hjnim.kim@samsung.com>
+---
+ libs/js/jquery-mobile-1.2.0/js/widgets/popup.js |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js b/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
+index 87aeffb..f6efab9 100644
+--- a/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
++++ b/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
+@@ -681,6 +681,9 @@ define( [ "jquery",
+                       this._isOpen = false;
++                      // IME hide when popup is closed
++                      this.element.find("input").blur();
++
+                       // Count down to triggering "popupafterclose" - we have two prerequisites:
+                       // 1. The popup window reverse animation completes (container())
+                       // 2. The screen opacity animation completes (screen())
+-- 
+1.7.5.4
+