Revert "Revert "Fix the cap mode problem in wearable equipment."" 38/205638/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 8 May 2019 06:23:59 +0000 (15:23 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 8 May 2019 06:24:08 +0000 (15:24 +0900)
This reverts commit f7f3092c4d73714a41f7f7690f169f5f56314407.

Change-Id: I815f8d12a3b8f9307ac3d8d8212c54dfeb343342

src/ise.cpp

index 0f59191..bc7d5be 100644 (file)
@@ -313,6 +313,11 @@ static void set_caps_mode(sclboolean mode) {
         if (g_ui->get_shift_state() != SCL_SHIFT_STATE_LOCK) {
             g_ui->set_shift_state(mode ? SCL_SHIFT_STATE_ON : SCL_SHIFT_STATE_OFF);
             g_ui->set_autocapital_shift_state(!mode);
+            if (mode) {
+                ise_send_event(MVK_Shift_On, KEY_MASK_NULL);
+            } else {
+                ise_send_event(MVK_Shift_Off, KEY_MASK_NULL);
+            }
         }
     }
 }