From: cnook <kimcinoo@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 Apr 2012 06:46:25 +0000 (06:46 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 Apr 2012 06:46:25 +0000 (06:46 +0000)
Subject: Re: [E-devel] [Patch][Ecore][Win32] Checking control character

I missed the updating WinCE. and..
Mr. Vincent Torri enlighten me about ChangeLog and NEWS also. Thanks!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@70219 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
NEWS
src/lib/ecore_wince/ecore_wince_event.c

index b66a6f6..3279eb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * remove EAPI from _ecore_event_signal_user_new(). It should never
        be exported outside of libecore.so
        * stop leaking every system signal event.
+
+2012-04-16  Shinwoo Kim
+
+       * Check control charater and convert into printing character on Windows
diff --git a/NEWS b/NEWS
index 07f0e0e..e0071a8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -95,6 +95,7 @@ Fixes:
      - possible 0 byte allocation.
     * ecore_win32/wince:
      - do not autorepeat Ctrl, Shift, Alt and Win keys.
+     - Check control charater and convert into printing character
     * ecore_con:
      - fix case where SSL certificates not being used.
      - post data corruption due to it not being copied to the con struct.
index 7643047..9afc062 100644 (file)
@@ -489,6 +489,11 @@ _ecore_wince_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_APP3: