Dear All, Hello~
This is Shinwoo Kim (Previously I have used cnook, [email protected] for
contribution)
The key compose and name have been different with xlib. So I have changed
the value of Shift, Control, and Alt.
Moreover, the attached patch is able to distinguish between Shift_L and
Shift_R as xlib.
Please review this and give any feedbacks, Thanks!
Sincerely,
Shinwoo Kim.
Index: src/lib/ecore_win32/ecore_win32_event.c
===================================================================
--- src/lib/ecore_win32/ecore_win32_event.c (revision 65324)
+++ src/lib/ecore_win32/ecore_win32_event.c (working copy)
@@ -799,19 +799,28 @@
}
break;
case VK_SHIFT:
- kn = "Shift";
- ks = "Shift";
- kc = "Shift";
+ if (GetKeyState(VK_LSHIFT) & 0x80000000)
+ {
+ kn = "Shift_L";
+ ks = "Shift_L";
+ kc = "";
+ }
+ else
+ {
+ kn = "Shift_R";
+ ks = "Shift_R";
+ kc = "";
+ }
break;
case VK_CONTROL:
- kn = "Control";
- ks = "Control";
- kc = "Control";
+ kn = "Control_L";
+ ks = "Control_L";
+ kc = "";
break;
case VK_MENU:
- kn = "Menu";
- ks = "Menu";
- kc = "Menu";
+ kn = "Alt_L";
+ ks = "Alt_L";
+ kc = "";
break;
case VK_F1:
kn = "F1";
Index: src/lib/ecore_wince/ecore_wince_event.c
===================================================================
--- src/lib/ecore_wince/ecore_wince_event.c (revision 65324)
+++ src/lib/ecore_wince/ecore_wince_event.c (working copy)
@@ -252,18 +252,27 @@
kc = "";
break;
case VK_SHIFT:
- kn = "Shift";
- ks = "Shift";
- kc = "Shift";
+ if (GetKeyState(VK_LSHIFT) & 0x80000000)
+ {
+ kn = "Shift_L";
+ ks = "Shift_L";
+ kc = "";
+ }
+ else
+ {
+ kn = "Shift_R";
+ ks = "Shift_R";
+ kc = "";
+ }
break;
case VK_CONTROL:
- kn = "Control";
- ks = "Control";
- kc = "Control";
+ kn = "Control_L";
+ ks = "Control_L";
+ kc = "";
break;
case VK_MENU:
- kn = "Menu";
- ks = "Menu";
+ kn = "Alt_L";
+ ks = "Alt_L";
kc = "";
break;
default:
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel