mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +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)
|
.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
|
||||||
|
|||||||
Reference in New Issue
Block a user