Skip to content

Commit

Permalink
Better input sanitization for modifier keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Aug 3, 2021
1 parent 9c067d6 commit 78ecb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public Settings()
hotkeyKey = (int)value;

if ((value = _registryKey.GetValue("HotkeyModifier")) != null && value.GetType() == (typeof(int)))
hotkeyModifier = (int)value;
hotkeyModifier = (int)value % 8;

if ((value = _registryKey.GetValue("Delay")) != null && value.GetType() == (typeof(long)))
{
Expand Down

0 comments on commit 78ecb22

Please sign in to comment.