From 3d2fa9265410dcbc29e6d42a75f2ebf97ab24867 Mon Sep 17 00:00:00 2001 From: crs Date: Thu, 29 Jul 2004 21:59:26 +0000 Subject: [PATCH] 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. --- lib/platform/CSynergyHook.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/platform/CSynergyHook.cpp b/lib/platform/CSynergyHook.cpp index b7441ae2..10a36cbf 100644 --- a/lib/platform/CSynergyHook.cpp +++ b/lib/platform/CSynergyHook.cpp @@ -400,8 +400,13 @@ keyboardHookHandler(WPARAM wParam, LPARAM lParam) case VK_LMENU: case VK_RMENU: case VK_HANGUL: - // discard the control and alt modifiers - return true; + // pass the control and alt modifiers if using a low + // level hook, discard them if not. + if (g_hookThread == 0) { + return true; + } + break; + default: // discard