mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user