[AdvPaste][runner]Fix triggering non-set hotkeys (#32976)

This commit is contained in:
Stefan Markovic
2024-05-24 00:39:52 +02:00
committed by GitHub
parent f3540174cd
commit 8fce41da06

View File

@@ -151,6 +151,11 @@ namespace CentralizedKeyboardHook
.key = static_cast<unsigned char>(keyPressInfo.vkCode) .key = static_cast<unsigned char>(keyPressInfo.vkCode)
}; };
if (hotkey == Hotkey{})
{
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
std::function<bool()> action; std::function<bool()> action;
{ {
// Hold the lock for the shortest possible duration // Hold the lock for the shortest possible duration