Modified to prevent treating a virtual remote control as a H/W keyboard 48/315848/2
authorInhong Han <inhong1.han@samsung.com>
Thu, 5 Dec 2024 03:01:03 +0000 (12:01 +0900)
committerInhong Han <inhong1.han@samsung.com>
Thu, 5 Dec 2024 07:33:58 +0000 (16:33 +0900)
Change-Id: Id72436b43b4f0d9bdbbb650bfe34a6655a997f0d

src/e_mod_main.c

index 7e64fe2c847407dab23886c9c17e11fe09761422..bd76073fe2a18a2c0f7b045bc3b9067acf482f0e 100644 (file)
@@ -1056,7 +1056,8 @@ _e_mod_ecore_key_down_cb(void *data, int type, void *event)
 
         /* process remote controller key exceptionally */
         if (e_device_class_get(dev) == ECORE_DEVICE_CLASS_KEYBOARD &&
-            e_device_subclass_get(dev) == ECORE_DEVICE_SUBCLASS_REMOCON)
+            (e_device_subclass_get(dev) == ECORE_DEVICE_SUBCLASS_REMOCON ||
+            e_device_subclass_get(dev) == ECORE_DEVICE_SUBCLASS_VIRTUAL_REMOCON))
           return ECORE_CALLBACK_PASS_ON;
      }
    else
@@ -1065,7 +1066,8 @@ _e_mod_ecore_key_down_cb(void *data, int type, void *event)
 
         /* process remote controller key exceptionally */
         if (ecore_device_class_get(dev) == ECORE_DEVICE_CLASS_KEYBOARD &&
-            ecore_device_subclass_get(dev) == ECORE_DEVICE_SUBCLASS_REMOCON)
+            (ecore_device_subclass_get(dev) == ECORE_DEVICE_SUBCLASS_REMOCON ||
+            ecore_device_subclass_get(dev) == ECORE_DEVICE_SUBCLASS_VIRTUAL_REMOCON))
           return ECORE_CALLBACK_PASS_ON;
      }