Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15634/src

Modified Files:
	mswindow.c 
Log Message:
Fixed problem with keyboard actions and richtext window,

Index: mswindow.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/mswindow.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- mswindow.c	7 Apr 2007 05:17:39 -0000	1.56
+++ mswindow.c	7 Apr 2007 09:16:14 -0000	1.57
@@ -2255,7 +2255,10 @@
 
         hwnd = WindowFromPoint (pos);
         if (GetWindowLongPtr (hwnd, GWLP_WNDPROC) != (LONG) NetrekWndProc)
-            return 0;           //Mouse is not in one of our windows
+        {
+            if (GetWindowLongPtr (hwnd, GWLP_WNDPROC) != (LONG) RichTextWndProc)
+                return 0;           //Mouse is not in one of our windows
+        }
 
         if (!hwnd || hwnd == ((Window *) baseWin)->hwnd)
             hwnd = ((Window *) w)->hwnd;
@@ -5963,8 +5966,6 @@
         W_ChangeBorder ((W_Window) win, W_White);
         break;*/
 
- //   case WM_KEYDOWN:
- //       return (0);
     case WM_LBUTTONDOWN:
         BringWindowToTop (hwnd);
         break;