From 529b1833978e2cc3d2477395eababaf038d8fe4d Mon Sep 17 00:00:00 2001 From: Kusanagi Kouichi Date: Wed, 13 Jan 2010 22:55:25 +0900 Subject: [PATCH] user32: Make DefWindowProc handle Shift+F10. --- dlls/user32/defwnd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c index ae104e2c49c..e3736fc13ef 100644 --- a/dlls/user32/defwnd.c +++ b/dlls/user32/defwnd.c @@ -561,7 +561,11 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa } } else if( wParam == VK_F10 ) + { + if (GetKeyState(VK_SHIFT) & 0x8000) + SendMessageW( hwnd, WM_CONTEXTMENU, (WPARAM)hwnd, MAKELPARAM(-1, -1) ); iF10Key = 1; + } else if( wParam == VK_ESCAPE && (GetKeyState(VK_SHIFT) & 0x8000)) SendMessageW( hwnd, WM_SYSCOMMAND, SC_KEYMENU, ' ' ); break;