X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=win32ss%2Fuser%2Fntuser%2Fhotkey.c;h=02b504fe6688ab191e97c07b3b11283e5c6d7b89;hp=f393906b20456a469121031756de81503e8ca8aa;hb=7e396787;hpb=c95f3358937b1ac66f62e152a9a64f74423c7b40 diff --git a/win32ss/user/ntuser/hotkey.c b/win32ss/user/ntuser/hotkey.c index f393906b204..02b504fe668 100644 --- a/win32ss/user/ntuser/hotkey.c +++ b/win32ss/user/ntuser/hotkey.c @@ -250,6 +250,19 @@ co_UserProcessHotKeys(WORD wVk, BOOL bIsDown) return FALSE; } } + + if (pHotKey->id == IDHK_SNAP_LEFT || + pHotKey->id == IDHK_SNAP_RIGHT || + pHotKey->id == IDHK_SNAP_UP || + pHotKey->id == IDHK_SNAP_DOWN) + { + HWND topWnd = UserGetForegroundWindow(); + if (topWnd) + { + UserPostMessage(topWnd, WM_KEYDOWN, wVk, 0); + } + return TRUE; + } if (!pHotKey->pWnd) {