diff --git a/Ink Canvas/Helpers/GlobalHotkeyManager.cs b/Ink Canvas/Helpers/GlobalHotkeyManager.cs index 31c671fa..c1fd8855 100644 --- a/Ink Canvas/Helpers/GlobalHotkeyManager.cs +++ b/Ink Canvas/Helpers/GlobalHotkeyManager.cs @@ -763,39 +763,9 @@ namespace Ink_Canvas.Helpers { // 在鼠标模式下设置事件处理状态 e.Handled = false; - - // 调用快捷键状态更新方法 - UpdateHotkeyRegistrationState(); - } - } - - /// - /// 动态管理快捷键 - /// - public void UpdateHotkeyRegistrationState() - { - try - { - bool isMouseMode = IsInSelectMode(); - - if (isMouseMode) - { - // 在鼠标模式下 - if (_hotkeysShouldBeRegistered) - { - EnableHotkeyRegistration(); - } - else - { - // 快捷键已经处于放行状态 - } - } - } - catch (Exception ex) - { - LogHelper.WriteLogToFile($"更新快捷键注册状态时出错: {ex.Message}", LogHelper.LogType.Error); } } + #endregion #region IDisposable Implementation