diff --git a/src/modules/fancyzones/lib/SecondaryMouseButtonsHook.cpp b/src/modules/fancyzones/lib/SecondaryMouseButtonsHook.cpp index ad36dffb67..86c47acc00 100644 --- a/src/modules/fancyzones/lib/SecondaryMouseButtonsHook.cpp +++ b/src/modules/fancyzones/lib/SecondaryMouseButtonsHook.cpp @@ -10,13 +10,6 @@ std::function SecondaryMouseButtonsHook::callback = {}; SecondaryMouseButtonsHook::SecondaryMouseButtonsHook(std::function extCallback) { callback = std::move(extCallback); -#if defined(DISABLE_LOWLEVEL_HOOKS_WHEN_DEBUGGED) - if (IsDebuggerPresent()) - { - return; - } -#endif - hHook = SetWindowsHookEx(WH_MOUSE_LL, SecondaryMouseButtonsProc, GetModuleHandle(NULL), 0); } void SecondaryMouseButtonsHook::enable() diff --git a/src/modules/fancyzones/lib/ShiftKeyHook.cpp b/src/modules/fancyzones/lib/ShiftKeyHook.cpp index 3cc9b9cbfc..79db4e9aa5 100644 --- a/src/modules/fancyzones/lib/ShiftKeyHook.cpp +++ b/src/modules/fancyzones/lib/ShiftKeyHook.cpp @@ -11,13 +11,6 @@ std::function ShiftKeyHook::callback = {}; ShiftKeyHook::ShiftKeyHook(std::function extCallback) { callback = std::move(extCallback); -#if defined(DISABLE_LOWLEVEL_HOOKS_WHEN_DEBUGGED) - if (IsDebuggerPresent()) - { - return; - } -#endif - hHook = SetWindowsHookEx(WH_KEYBOARD_LL, ShiftKeyHookProc, GetModuleHandle(NULL), 0); } void ShiftKeyHook::enable()