Subject: Re: [E-devel] [PATCH] Fix the bug that user cannot input key
At this moment, space is processed in case of WM_KEYDOWN and WM_CHAR.
Therefore, 'space' key is processed twice, it makes bug.
In previous my patch, I changed keyname and string wrong.
I send the revised patch again.
(also applied to wince)
this is am improvement.. but its not all "right" yet. :(
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@64597
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
INF("keydown message");
_ecore_win32_event_handle_key_press(data, 1);
return 0;
- /* case WM_CHAR: */
- /* INF("char message"); */
- /* _ecore_win32_event_handle_key_press(data, 0); */
- /* return 0; */
+ case WM_CHAR:
+ INF("char message");
+ _ecore_win32_event_handle_key_press(data, 0);
+ return 0;
case WM_KEYUP:
INF("keyup message");
_ecore_win32_event_handle_key_release(data, 1);
kc = "KP_Delete";
}
break;
- case VK_SPACE:
- kn = "space";
- ks = "space";
- kc = "space";
- break;
case VK_F1:
kn = "F1";
ks = "F1";
case VK_SPACE:
strncpy(kn, "space", 32);
strncpy(ks, "space", 32);
- strncpy(kc, "space", 32);
+ strncpy(kc, " ", 32);
break;
default:
/* displayable characters */
ks = "Delete";
kc = "Delete";
break;
- case VK_SPACE:
- kn = "space";
- ks = "space";
- kc = "space";
- break;
case VK_F1:
kn = "F1";
ks = "F1";
case VK_SPACE:
strncpy(kn, "space", 32);
strncpy(ks, "space", 32);
- strncpy(kc, "space", 32);
+ strncpy(kc, " ", 32);
break;
default:
/* displayable characters */