forked from enlightenment/efl
Ecore: Add virtual keys support for Shift, Ctrl, Alt on Win32 and WinCE
Patch by Shinwoo Kim SVN revision: 65049
This commit is contained in:
parent
d8a69c1622
commit
e169f9e5b7
|
@ -83,6 +83,7 @@ _ecore_win32_window_procedure(HWND window,
|
||||||
{
|
{
|
||||||
/* Keyboard input notifications */
|
/* Keyboard input notifications */
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
|
case WM_SYSKEYDOWN:
|
||||||
INF("keydown message");
|
INF("keydown message");
|
||||||
_ecore_win32_event_handle_key_press(data, 1);
|
_ecore_win32_event_handle_key_press(data, 1);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -91,6 +92,7 @@ _ecore_win32_window_procedure(HWND window,
|
||||||
_ecore_win32_event_handle_key_press(data, 0);
|
_ecore_win32_event_handle_key_press(data, 0);
|
||||||
return 0;
|
return 0;
|
||||||
case WM_KEYUP:
|
case WM_KEYUP:
|
||||||
|
case WM_SYSKEYUP:
|
||||||
INF("keyup message");
|
INF("keyup message");
|
||||||
_ecore_win32_event_handle_key_release(data, 1);
|
_ecore_win32_event_handle_key_release(data, 1);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -798,6 +798,21 @@ _ecore_win32_event_keystroke_get(int key,
|
||||||
kc = "KP_Delete";
|
kc = "KP_Delete";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case VK_SHIFT:
|
||||||
|
kn = "Shift";
|
||||||
|
ks = "Shift";
|
||||||
|
kc = "Shift";
|
||||||
|
break;
|
||||||
|
case VK_CONTROL:
|
||||||
|
kn = "Control";
|
||||||
|
ks = "Control";
|
||||||
|
kc = "Control";
|
||||||
|
break;
|
||||||
|
case VK_MENU:
|
||||||
|
kn = "Menu";
|
||||||
|
ks = "Menu";
|
||||||
|
kc = "Menu";
|
||||||
|
break;
|
||||||
case VK_F1:
|
case VK_F1:
|
||||||
kn = "F1";
|
kn = "F1";
|
||||||
ks = "F1";
|
ks = "F1";
|
||||||
|
|
|
@ -251,6 +251,16 @@ _ecore_wince_event_keystroke_get(int key,
|
||||||
ks = "Application";
|
ks = "Application";
|
||||||
kc = "";
|
kc = "";
|
||||||
break;
|
break;
|
||||||
|
case VK_SHIFT:
|
||||||
|
kn = "Shift";
|
||||||
|
ks = "Shift";
|
||||||
|
kc = "Shift";
|
||||||
|
break;
|
||||||
|
case VK_CONTROL:
|
||||||
|
kn = "Control";
|
||||||
|
ks = "Control";
|
||||||
|
kc = "Control";
|
||||||
|
break;
|
||||||
case VK_MENU:
|
case VK_MENU:
|
||||||
kn = "Menu";
|
kn = "Menu";
|
||||||
ks = "Menu";
|
ks = "Menu";
|
||||||
|
|
Loading…
Reference in New Issue