Skip to content

Commit

Permalink
Fix attempt for gmamaladze#164
Browse files Browse the repository at this point in the history
  • Loading branch information
EgilSandfeld committed Sep 8, 2022
1 parent 95b1a5c commit 92487dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MouseKeyHook/KeyEventArgsExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal static KeyEventArgsExt FromRawDataGlobal(CallbackData data)

var keyData = AppendModifierStates((Keys) keyboardHookStruct.VirtualKeyCode);

var keyCode = (int) wParam;
var keyCode = (long) wParam;
var isKeyDown = keyCode == Messages.WM_KEYDOWN || keyCode == Messages.WM_SYSKEYDOWN;
var isKeyUp = keyCode == Messages.WM_KEYUP || keyCode == Messages.WM_SYSKEYUP;

Expand Down

0 comments on commit 92487dd

Please sign in to comment.