diff --git a/Ink Canvas/MainWindow.xaml.cs b/Ink Canvas/MainWindow.xaml.cs index 33609dba..8e94e357 100644 --- a/Ink Canvas/MainWindow.xaml.cs +++ b/Ink Canvas/MainWindow.xaml.cs @@ -2575,29 +2575,6 @@ namespace Ink_Canvas } } - /// - /// 打开快捷键设置窗口 - /// - private void OpenHotkeySettingsWindow() - { - try - { - if (_globalHotkeyManager == null) - { - MessageBox.Show("快捷键管理器尚未初始化,请稍后重试。", "错误", MessageBoxButton.OK, MessageBoxImage.Error); - return; - } - - var hotkeySettingsWindow = new HotkeySettingsWindow(this, _globalHotkeyManager); - hotkeySettingsWindow.Owner = this; - hotkeySettingsWindow.ShowDialog(); - } - catch (Exception ex) - { - LogHelper.WriteLogToFile($"打开快捷键设置窗口时出错: {ex.Message}", LogHelper.LogType.Error); - MessageBox.Show($"打开快捷键设置窗口时出错: {ex.Message}", "错误", MessageBoxButton.OK, MessageBoxImage.Error); - } - } #endregion #region 展台/白板分辨率切换 diff --git a/Ink Canvas/Windows/HotkeyItem.xaml b/Ink Canvas/Windows/HotkeyItem.xaml index 3cfc5b1e..c3725b7f 100644 --- a/Ink Canvas/Windows/HotkeyItem.xaml +++ b/Ink Canvas/Windows/HotkeyItem.xaml @@ -3,68 +3,37 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf" mc:Ignorable="d" - d:DesignHeight="60" + d:DesignHeight="68" d:DesignWidth="600"> - - - - - - - - - - - - - - + + + + + -