forked from enlightenment/efl
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:
parent
59a7bda1d9
commit
40c5c91466
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue