Add voice layout in wearable profile 24/83524/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 11 Aug 2016 10:51:42 +0000 (03:51 -0700)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 11 Aug 2016 10:55:55 +0000 (19:55 +0900)
Change-Id: Ib160f3b70e621671b4086f9410ad699ab2af4b52

src/ise.cpp

index 0fd1e08..f824886 100644 (file)
@@ -574,7 +574,10 @@ void CCoreEventCallback::on_process_input_device_event(sclu32 &type, sclchar *da
                             _context_layout == ISE_LAYOUT_STYLE_PASSWORD)
                             new_layout = _context_layout;
                         else
-                            new_layout = ISE_LAYOUT_STYLE_NORMAL;
+                            new_layout = ISE_LAYOUT_STYLE_TERMINAL;
+                        break;
+                    case ISE_LAYOUT_STYLE_TERMINAL:
+                        new_layout = ISE_LAYOUT_STYLE_NORMAL;
                         break;
                     default:
                         ;
@@ -594,7 +597,7 @@ void CCoreEventCallback::on_process_input_device_event(sclu32 &type, sclchar *da
                             _context_layout == ISE_LAYOUT_STYLE_PASSWORD)
                             new_layout = ISE_LAYOUT_STYLE_HEX;
                         else
-                            new_layout = ISE_LAYOUT_STYLE_EMOTICON;
+                            new_layout = ISE_LAYOUT_STYLE_TERMINAL;
                         break;
                     case ISE_LAYOUT_STYLE_NUMBER:
                         if (_context_layout == ISE_LAYOUT_STYLE_EMAIL ||
@@ -610,6 +613,9 @@ void CCoreEventCallback::on_process_input_device_event(sclu32 &type, sclchar *da
                     case ISE_LAYOUT_STYLE_EMOTICON:
                         new_layout = ISE_LAYOUT_STYLE_HEX;
                         break;
+                    case ISE_LAYOUT_STYLE_TERMINAL:
+                        new_layout = ISE_LAYOUT_STYLE_EMOTICON;
+                        break;
                     default:
                         ;
                 }