From: cnook <kimcinoo@gmail.com>

Subject: [E-devel] [Patch][Ecore][Win32] Checking control character

The control characters are generated by holding down the Control key while
you strike another letter or symbol key.
Because of this reason, The Evas_Event_Key_Down in the
EVAS_CALLBACK_KEY_DOWN callback does not have proper keyname.
So I have shifted the control character to printing character. Please
review the patch and give any feedbacks. Thanks.




SVN revision: 70186
This commit is contained in:
cnook 2012-04-15 03:28:49 +00:00 committed by Carsten Haitzler
parent 59a7bda1d9
commit 40c5c91466
1 changed files with 5 additions and 0 deletions

View File

@ -1217,6 +1217,11 @@ _ecore_win32_event_char_get(int key,
*keysymbol = NULL;
*keycompose = NULL;
/* check control charaters such as ^a(key:1), ^z(key:26) */
if ((key > 0) && (key < 27) &&
((GetKeyState(VK_CONTROL) & 0x8000) ||
(GetKeyState(VK_CONTROL) & 0x8000))) key += 96;
switch (key)
{
case VK_PROCESSKEY: