Fixed handling of ctrl and alt keys when using low level hooks.

They were being discarded so the server wouldn't correctly send
ctrl, alt, or AltGr to clients.
This commit is contained in:
crs 2004-07-29 21:59:26 +00:00
parent 898a9af3b0
commit 3d2fa92654
1 changed files with 7 additions and 2 deletions

View File

@ -400,8 +400,13 @@ keyboardHookHandler(WPARAM wParam, LPARAM lParam)
case VK_LMENU: case VK_LMENU:
case VK_RMENU: case VK_RMENU:
case VK_HANGUL: case VK_HANGUL:
// discard the control and alt modifiers // pass the control and alt modifiers if using a low
return true; // level hook, discard them if not.
if (g_hookThread == 0) {
return true;
}
break;
default: default:
// discard // discard