From bdd341233f6777216575503256494bc07e426874 Mon Sep 17 00:00:00 2001 From: "a.yashchenko" Date: Tue, 12 Mar 2024 14:34:58 +0300 Subject: [PATCH] disabled global hotkey modifier restriction --- src/Root.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Root.cs b/src/Root.cs index 44052566..c4ed4503 100644 --- a/src/Root.cs +++ b/src/Root.cs @@ -921,8 +921,7 @@ public void SetHotkey() if (Hotkey_Global.Alt) modifier |= 0x1; if (Hotkey_Global.Shift) modifier |= 0x4; if (Hotkey_Global.Win) modifier |= 0x8; - if (modifier != 0) - RegisterHotKey(IntPtr.Zero, 0, modifier, Hotkey_Global.Key); + RegisterHotKey(IntPtr.Zero, 0, modifier, Hotkey_Global.Key); } public void UnsetHotkey() @@ -932,8 +931,7 @@ public void UnsetHotkey() if (Hotkey_Global.Alt) modifier |= 0x1; if (Hotkey_Global.Shift) modifier |= 0x4; if (Hotkey_Global.Win) modifier |= 0x8; - if (modifier != 0) - UnregisterHotKey(IntPtr.Zero, 0); + UnregisterHotKey(IntPtr.Zero, 0); } public void ChangeLanguage(string filename)