diff --git a/STranslate/Helper/HotkeysHelper.cs b/STranslate/Helper/HotkeysHelper.cs index ba95225..28ac43d 100644 --- a/STranslate/Helper/HotkeysHelper.cs +++ b/STranslate/Helper/HotkeysHelper.cs @@ -71,6 +71,12 @@ namespace STranslate.Helper var _hwndSource = HwndSource.FromHwnd(hwnd); _hwndSource.AddHook(WndProc); } + /// + /// 注册快捷键 + /// https://git2.nas.zggsong.cn:5001/zggsong/STranslate/src/commit/2fe17e7f6596b47b33a40d8733a0527ba5d9b2fb/STranslate/Utils/HotKeysUtil.cs + /// + /// InputTranslateId、ScreenShotTranslateId、CrosswordTranslateId、OpenMainWindowId + /// public static void Register(int id, HotKeyCallBackHanlder callBack) { keymap[id] = callBack; @@ -97,7 +103,7 @@ namespace STranslate.Helper /// 注册快捷键 /// /// - public static void RegisterHotKey(IntPtr mainFormHandle) + private static void RegisterHotKey(IntPtr mainFormHandle) { HotkeysHelper.mainFormHandle = mainFormHandle;