Skip to content

Commit

Permalink
修复 鼠标快捷键错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MakesYT committed Aug 4, 2024
1 parent dc94b05 commit 7962706
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Core.Window/HotKeyImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ private static void OnMouseReleased(MouseHookEventArgs e)
{
if (value.HotKeyModel.Type != HotKeyType.Mouse) continue;
if (value.Id == -1) continue;
if (value.HotKeyModel.MouseButton == (int)e.Data.Button)
var dataButton = (int)e.Data.Button;
if (dataButton == 0)
{
continue;
}

if (value.HotKeyModel.MouseButton == dataButton - 1)
{
value.Timer?.Stop();
}
Expand Down

0 comments on commit 7962706

Please sign in to comment.