mmi-keyboard-provider : op_mode changes to extern, wayland-input : check op mode... 81/264081/1
authordyamy-lee <dyamy.lee@samsung.com>
Thu, 26 Aug 2021 10:36:40 +0000 (19:36 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:26:05 +0000 (20:26 +0900)
Change-Id: I4ac892b00a606c230a4a74204a9e0361f36cbf0d

src/modules/modality_keyboard/mmi-keyboard-provider.h
src/modules/modality_keyboard/wayland-input.c

index d57b725..fe6ca13 100644 (file)
@@ -28,6 +28,8 @@
 #include "../../mmi-provider-iface.h"
 #include "../../mmi-manager-dbg.h"
 
+extern mmi_provider_op_mode _provider_mode;
+
 bool keyboard_set_mode(mmi_provider_op_mode mode);
 mmi_provider_op_mode keyboard_get_mode(void);
 
index 86b899e..5079386 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "wayland-input.h"
+#include "mmi-keyboard-provider.h"
 #include "../../mmi-manager-dbg.h"
 #include "../../mmi-common.h"
 
@@ -307,7 +308,7 @@ keyboard_key(void *data, struct wl_keyboard *keyboard, unsigned int serial, unsi
     else
     {
         LOGD("has_keymap | keycode : %d, state : %d, timestamp : %d\n", user_keycode, state, timestamp);
-        if(keymap)
+        if(_provider_mode == MODALITY_PROVIDER_MODE_PROPAGATE_EVENT)
         {
             _input_add_key_event(user_keycode, state, timestamp);
         }