Skip to content

Commit

Permalink
Allows setting individual key as HotKey
Browse files Browse the repository at this point in the history
  • Loading branch information
jie65535 committed Jul 25, 2023
1 parent f629bc9 commit ab9a617
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 175 deletions.
2 changes: 1 addition & 1 deletion Source/GrasscutterTools/Pages/PageHotKey.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Source/GrasscutterTools/Pages/PageHotKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ private void TxtHotKey_KeyDown(object sender, KeyEventArgs e)
return;
}

// 必须带功能键
if (e.Modifiers == Keys.None)
return;
// 可选的功能键
//// 必须带功能键
//if (e.Modifiers == Keys.None)
// return;

// 必须是组合键
if (e.KeyCode == Keys.ControlKey || e.KeyCode == Keys.ShiftKey || e.KeyCode == Keys.Menu)
Expand Down
Loading

0 comments on commit ab9a617

Please sign in to comment.