Skip to content

Commit ffba504

Browse files
committed
Style tweak
(imported from Perforce changelist 4029)
1 parent 2a734d1 commit ffba504

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Src/GlobalKeyboardListener.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@ private int hookProc(int code, int wParam, ref WinAPI.KeyboardHookStruct lParam)
8989
if (HookAllKeys || _hookedKeys.Contains(key))
9090
{
9191
var kea = new GlobalKeyEventArgs(key, lParam.scanCode);
92+
9293
if ((wParam == WinAPI.WM_KEYDOWN || wParam == WinAPI.WM_SYSKEYDOWN) && (KeyDown != null))
93-
{
9494
KeyDown(this, kea);
95-
}
9695
else if ((wParam == WinAPI.WM_KEYUP || wParam == WinAPI.WM_SYSKEYUP) && (KeyUp != null))
97-
{
9896
KeyUp(this, kea);
99-
}
97+
10098
if (kea.Handled)
10199
return 1;
102100
}

0 commit comments

Comments
 (0)