Author: dpsimons
Date: Mon Nov 23 20:32:08 2015
New Revision: 39192

URL: http://svn.gna.org/viewcvs/gnustep?rev=39192&view=rev
Log:
Allow Escape key to be processed during a capture mouse sequence.

Modified:
    libs/back/branches/gnustep_testplant_branch/ChangeLog
    libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m

Modified: libs/back/branches/gnustep_testplant_branch/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/back/branches/gnustep_testplant_branch/ChangeLog?rev=39192&r1=39191&r2=39192&view=diff
==============================================================================
--- libs/back/branches/gnustep_testplant_branch/ChangeLog       (original)
+++ libs/back/branches/gnustep_testplant_branch/ChangeLog       Mon Nov 23 
20:32:08 2015
@@ -1,3 +1,8 @@
+2015-11-23  Doug Simons <[email protected]>
+
+       * Source/win32/WIN32Server.m : Allow the Escape key to go through
+       while still blocking other keys during a capture mouse sequence.
+
 2014-07-09  Doug Simons <[email protected]>
 
        * Source/win32/WIN32Server.m : Fix process_key_event to set

Modified: libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m?rev=39192&r1=39191&r2=39192&view=diff
==============================================================================
--- libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m      
(original)
+++ libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m      
Mon Nov 23 20:32:08 2015
@@ -227,6 +227,9 @@
   // We need to restrict normal keyboard messages during a system capture mouse
   // sequence to avoid allowing the user to change windows and potentially 
start
   // another GNUstep app before capture mouse sequence is completed...
+  PKBDLLHOOKSTRUCT kbdllstruct = (PKBDLLHOOKSTRUCT)lParam;
+  if (kbdllstruct->vkCode == VK_ESCAPE) // allow Escape key to be processed
+       return(CallNextHookEx(0, nCode, wParam, lParam));
   return(TRUE);
 }
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to