forked from enlightenment/efl
Ecore_Win32/WinCE: also do not autorepeat the Win key
Patch by Shinwoo Kim SVN revision: 69638
This commit is contained in:
parent
d905ebda6a
commit
e17aa714d8
|
@ -589,5 +589,5 @@
|
|||
|
||||
2012-03-26 Shinwoo Kim
|
||||
|
||||
* Do not autorepeat Ctrl, Shift and Alt keys on Windows
|
||||
* Do not autorepeat Ctrl, Shift, Alt and Win keys on Windows
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ Fixes:
|
|||
* ecore_x:
|
||||
- ecore_x_randr_modes_info_get does not cut off the trailing '\0' anymore.
|
||||
* ecore_win32/wince:
|
||||
- do not autorepeat Ctrl, Shift and Alt keys
|
||||
- do not autorepeat Ctrl, Shift, Alt and Win keys
|
||||
|
||||
Improvements:
|
||||
* ecore:
|
||||
|
|
|
@ -971,6 +971,7 @@ _ecore_win32_event_keystroke_get(Ecore_Win32_Callback_Data *msg,
|
|||
{
|
||||
if (is_down)
|
||||
{
|
||||
if (previous_key_state) return 0;
|
||||
kn = "Super_L";
|
||||
ks = "Super_L";
|
||||
kc = "";
|
||||
|
@ -989,6 +990,7 @@ _ecore_win32_event_keystroke_get(Ecore_Win32_Callback_Data *msg,
|
|||
{
|
||||
if (is_down)
|
||||
{
|
||||
if (previous_key_state) return 0;
|
||||
kn = "Super_R";
|
||||
ks = "Super_R";
|
||||
kc = "";
|
||||
|
|
|
@ -411,6 +411,44 @@ _ecore_wince_event_keystroke_get(int key,
|
|||
}
|
||||
break;
|
||||
}
|
||||
case VK_LWIN:
|
||||
{
|
||||
if (is_down)
|
||||
{
|
||||
if (previous_key_state) return 0;
|
||||
kn = "Super_L";
|
||||
ks = "Super_L";
|
||||
kc = "";
|
||||
*modifiers |= ECORE_EVENT_MODIFIER_WIN;
|
||||
}
|
||||
else /* is_up */
|
||||
{
|
||||
kn = "Super_L";
|
||||
ks = "Super_L";
|
||||
kc = "";
|
||||
*modifiers &= ~ECORE_EVENT_MODIFIER_WIN;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case VK_RWIN:
|
||||
{
|
||||
if (is_down)
|
||||
{
|
||||
if (previous_key_state) return 0;
|
||||
kn = "Super_R";
|
||||
ks = "Super_R";
|
||||
kc = "";
|
||||
*modifiers |= ECORE_EVENT_MODIFIER_WIN;
|
||||
}
|
||||
else /* is_up */
|
||||
{
|
||||
kn = "Super_R";
|
||||
ks = "Super_R";
|
||||
kc = "";
|
||||
*modifiers &= ~ECORE_EVENT_MODIFIER_WIN;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
/* other non keystroke characters */
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue