Allow Escape key to be processed during a capture mouse sequence.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@39192 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2015-11-23 19:32:08 +00:00
parent 1ebf02d6f9
commit bc7143d2d5
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-11-23 Doug Simons <doug.simons@testplant.com>
* 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 <doug.simons@testplant.com>
* Source/win32/WIN32Server.m : Fix process_key_event to set

View file

@ -227,6 +227,9 @@ LRESULT CALLBACK KeyboardProc_LL(int nCode, WPARAM wParam, LPARAM lParam)
// 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);
}