diff --git a/Control/UserControls/Config/MotionControl.xaml.cs b/Control/UserControls/Config/MotionControl.xaml.cs index 944ff11..ce775ac 100644 --- a/Control/UserControls/Config/MotionControl.xaml.cs +++ b/Control/UserControls/Config/MotionControl.xaml.cs @@ -35,8 +35,6 @@ namespace GeekDesk.Control.UserControls.Config /// private void HotKeyDown(object sender, KeyEventArgs e) { - Console.WriteLine("downKey:" + e.Key.ToString()); - lock (this) { HotKeyType hkType = (HotKeyType)(sender as TextBox).Tag; @@ -49,8 +47,6 @@ namespace GeekDesk.Control.UserControls.Config if (!CheckIsEnable(hkType)) return; - - Console.WriteLine("prevKeyTemp:" + prevKeyTemp.ToString()); if (prevKeyTemp == Key.None || prevKeyTemp != downKey) { @@ -101,7 +97,6 @@ namespace GeekDesk.Control.UserControls.Config appConfig.ColorPickerHotkeyModifiers = GetModifierKeys(downKey); break; } - Console.WriteLine("进入设置" + downKey.ToString()); prevKeyTemp = downKey; keysTemp.Add(e); } @@ -119,7 +114,10 @@ namespace GeekDesk.Control.UserControls.Config KeyUtil.KeyProp keyProp = new KeyUtil.KeyProp(); KeyUtil.KeyToChar(downKey, ref keyProp, true); string downKeyStr = keyProp.character.ToString(); - //string downKeyStr = ""; + if (keyProp.character == '\x00') + { + downKeyStr = downKey.ToString(); + } switch (hkType) { case HotKeyType.Main: