]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed results of strange cvs code merge
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Oct 2001 15:11:22 +0000 (15:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Oct 2001 15:11:22 +0000 (15:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index f192a7ef11a36ad15ab088e101beadb9d0fa755d..e9f5e00cbb15dbe7c95db0e3c90072d2eb5c125d 100644 (file)
@@ -683,19 +683,14 @@ static long map_to_wx_keysym( GdkEventKey *event )
         case GDK_F11:           key_code = WXK_F11;         break;
         case GDK_F12:           key_code = WXK_F12;         break;
         default:
-        {
             if (event->length == 1)
             {
-                if (event->length == 1)
-                {
-                    key_code = (unsigned char)*event->string;
-                }
-                else if ((keysym & 0xFF) == keysym)
-                {
-                    key_code = (guint)keysym;
-                }
+                key_code = (unsigned char)*event->string;
+            }
+            else if ((keysym & 0xFF) == keysym)
+            {
+                key_code = (guint)keysym;
             }
-        }
     }
 
     return key_code;
index f192a7ef11a36ad15ab088e101beadb9d0fa755d..e9f5e00cbb15dbe7c95db0e3c90072d2eb5c125d 100644 (file)
@@ -683,19 +683,14 @@ static long map_to_wx_keysym( GdkEventKey *event )
         case GDK_F11:           key_code = WXK_F11;         break;
         case GDK_F12:           key_code = WXK_F12;         break;
         default:
-        {
             if (event->length == 1)
             {
-                if (event->length == 1)
-                {
-                    key_code = (unsigned char)*event->string;
-                }
-                else if ((keysym & 0xFF) == keysym)
-                {
-                    key_code = (guint)keysym;
-                }
+                key_code = (unsigned char)*event->string;
+            }
+            else if ((keysym & 0xFF) == keysym)
+            {
+                key_code = (guint)keysym;
             }
-        }
     }
 
     return key_code;