mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
[AdvPaste][runner]Fix triggering non-set hotkeys (#32976)
This commit is contained in:
@@ -151,6 +151,11 @@ namespace CentralizedKeyboardHook
|
||||
.key = static_cast<unsigned char>(keyPressInfo.vkCode)
|
||||
};
|
||||
|
||||
if (hotkey == Hotkey{})
|
||||
{
|
||||
return CallNextHookEx(hHook, nCode, wParam, lParam);
|
||||
}
|
||||
|
||||
std::function<bool()> action;
|
||||
{
|
||||
// Hold the lock for the shortest possible duration
|
||||
|
||||
Reference in New Issue
Block a user