Allows setting individual key as HotKey

This commit is contained in:
jie65535 committed 2023-07-25 21:17:02 +08:00
1 parent f629bc9993
commit ab9a617619
4 files changed
+248 -243

No files matched your search

+3 -2
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("快捷键不能为空!");