Disable setting key in encryption mode 23/157623/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 25 Oct 2017 10:29:14 +0000 (19:29 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 10 Nov 2017 08:40:58 +0000 (17:40 +0900)
Change-Id: I878e389430dfd7ef61c67387765e8b246ee72821
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index 800ff6b..5697669 100644 (file)
@@ -1327,6 +1327,8 @@ ise_show(int ic)
                 g_ui->enable_button("colon", !filename_layout);
                 g_ui->enable_button("quotation", !filename_layout);
 
+                g_ui->enable_button("CM_KEY", !access("/home", X_OK));
+
                 LOGD("new layout index : %d\n", layout_index);
                 /* If this layout requires specific input mode, set it */
                 if (strlen(g_ise_default_values[layout_index].input_mode) > 0) {