Set the vconf value to send the IME geometry 15/227215/1 tizen_5.5_tv
authorInHong Han <inhong1.han@samsung.com>
Tue, 10 Mar 2020 10:44:45 +0000 (19:44 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 10 Mar 2020 10:44:45 +0000 (19:44 +0900)
Change-Id: I1608bb08ebcb63aa8bfeba6f34286372effb9177

src/sclcoreui-efl.cpp

index b80d1ba..a62677f 100644 (file)
@@ -169,6 +169,13 @@ void CSCLCoreUIEFL::update_keyboard_geometry(SclSize portrait, SclSize landscape
     elm_win_screen_size_get(main_window, NULL, NULL, &win_w, &win_h);
     int degree = elm_win_active_win_orientation_get(main_window);
     LOGD("degree : %d", degree);
+
+    char geometry[128];
+    snprintf(geometry, sizeof(geometry), "%d,%d,%d,%d", (win_w - portrait.width) / 2, win_h - portrait.height, portrait.width, portrait.height);
+    vconf_set_str(VCONFKEY_ISF_INPUT_PANEL_PORT_GEOMETRY, geometry);
+    snprintf(geometry, sizeof(geometry), "%d,%d,%d,%d", (win_h - landscape.width) / 2, win_w - landscape.height, landscape.width, landscape.height);
+    vconf_set_str(VCONFKEY_ISF_INPUT_PANEL_LAND_GEOMETRY, geometry);
+
     CSCLCoreImpl *impl = CSCLCoreImpl::get_instance();
     if (impl) {
         if (degree == 0 || degree == 180)