Allows setting individual key as HotKey

This commit is contained in:
2023-07-25 21:17:02 +08:00
parent f629bc9993
commit ab9a617619
4 changed files with 248 additions and 243 deletions

View File

@@ -120,8 +120,9 @@ namespace GrasscutterTools.Utils
}
}
if (keyModifiers == AppHotKey.KeyModifiers.None)
throw new InvalidOperationException("功能键不能为空!");
// 允许功能键为空
//if (keyModifiers == AppHotKey.KeyModifiers.None)
// throw new InvalidOperationException("功能键不能为空!");
if (keyCode == Keys.None)
throw new InvalidOperationException("快捷键不能为空!");