Restore layout when voice input canceled 26/91526/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 10 Oct 2016 05:33:00 +0000 (14:33 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 10 Oct 2016 05:33:00 +0000 (14:33 +0900)
Change-Id: Ic2f92c3221c2346ae56fe1edc7167cf8729f706d

src/ise.cpp

index cadb58a..e09b692 100644 (file)
@@ -1057,7 +1057,7 @@ SCLEventReturnType CUIEventCallback::on_event_key_clicked(SclUIEventDesc event_d
                     g_keyboard_state.need_reset = TRUE;
                     voice_result_string_flush();
                     ise_hide_stt_mode();
-                    ise_set_layout(ISE_LAYOUT_STYLE_NORMAL, 0);
+                    ise_set_layout(g_keyboard_state.layout, g_keyboard_state.layout_variation);
                     if (g_keyboard_state.visible_state)
                         ise_show(g_keyboard_state.ic);
                 }