From: Inhong Han Date: Thu, 5 Dec 2024 03:01:03 +0000 (+0900) Subject: Modified to prevent treating a virtual remote control as a H/W keyboard X-Git-Tag: accepted/tizen/9.0/unified/20241207.044217~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c973b87d11544324e58a14f45ac6126136ec931f;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Modified to prevent treating a virtual remote control as a H/W keyboard Change-Id: Id72436b43b4f0d9bdbbb650bfe34a6655a997f0d --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 7e64fe2..bd76073 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -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; }