From 7e0a30b8e86739f5778cd92b480000c8b231bcce Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Tue, 3 Jan 2023 19:50:27 +0800 Subject: [PATCH] tmp --- STranslate/Helper/HotkeysHelper.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;