pagelayout: not showing back button on keyboard hide (N_SE-41675)
authorMaciej Urbanski <m.urbanski@samsung.com>
Wed, 19 Jun 2013 07:46:06 +0000 (09:46 +0200)
committerhjnim.kim <hjnim.kim@samsung.com>
Sun, 23 Jun 2013 14:50:07 +0000 (23:50 +0900)
When HW Buttons are available not showing back button after keyboard
is hidden.

Change-Id: I15e8b8960afbbe6acb009b997f6f2ec3e6eac4b7

src/js/widgets/jquery.mobile.tizen.pagelayout.js

index d99201a..26ac917 100644 (file)
@@ -277,19 +277,23 @@ define( [ '../jquery.mobile.tizen.core' ], function ( ) {
                                                //             new page's one, and the old page's .ui-btn-back button is still hidden.
                                                //             So, the current back button is remembered to be shown at the
                                                //             softkeyboardchange.off event.
-                                               backBtn = $( ".ui-page-active .ui-btn-back" );
-                                               backBtn.hide();
-                                               self._backBtnQueue.push( backBtn );     // Store hidden backBtn
+                                               if ( !($.tizen && $.tizen.frameworkData.deviceCapa
+                                                               && $.tizen.frameworkData.deviceCapa.inputKeyBack ) ) {
+                                                       backBtn = $( ".ui-page-active .ui-btn-back" );
+                                                       backBtn.hide();
+                                                       self._backBtnQueue.push( backBtn );     // Store hidden backBtn
+                                               }
                                        } else if ( e.state == "off" ) {
-                                               self._backBtnQueue.forEach( function ( b ) {
-                                                       b.show();       // Show each backBtn,
-                                               } );
-                                               self._backBtnQueue.length = 0;  // and clear queue.
-
+                                               if ( !($.tizen && $.tizen.frameworkData.deviceCapa
+                                                               && $.tizen.frameworkData.deviceCapa.inputKeyBack ) ) {
+                                                       self._backBtnQueue.forEach( function ( b ) {
+                                                               b.show();       // Show each backBtn,
+                                                       } );
+                                                       self._backBtnQueue.length = 0;  // and clear queue.
+                                               }
                                                $( ".ui-btn-footer-down" ).remove();
                                        }
                                }
-
                        });
                },