diff --git a/src/20-Services/Wtq.Services.WinForms/Native/HotkeyManager.cs b/src/20-Services/Wtq.Services.WinForms/Native/HotkeyManager.cs index 92c41ed..c4eaab9 100644 --- a/src/20-Services/Wtq.Services.WinForms/Native/HotkeyManager.cs +++ b/src/20-Services/Wtq.Services.WinForms/Native/HotkeyManager.cs @@ -32,7 +32,7 @@ static HotkeyManager() private delegate void RegisterHotkeyDelegate(nint hwnd, int id, uint modifiers, uint key); - private delegate void UnRegisterHotkeyDelegate(nint hwnd, int id); + private delegate void UnregisterHotkeyDelegate(nint hwnd, int id); /// /// Fired when the registered hotkey is pressed. Note that needs to be called first. @@ -50,7 +50,7 @@ public static int RegisterHotkey(Keys key, KeyModifiers modifiers) public static void UnregisterHotkey(int id) { - _wnd.Invoke(new UnRegisterHotkeyDelegate((hwnd, id) => User32.UnregisterHotKey(_hwnd, id)), _hwnd, id); + _wnd.Invoke(new UnregisterHotkeyDelegate((hwnd, id) => User32.UnregisterHotKey(_hwnd, id)), _hwnd, id); } ///