[PATCH] user32: Make DefWindowProc handle SHIFT+F10.
Kusanagi Kouichi
slash at ac.auone-net.jp
Mon Dec 7 22:55:49 CST 2009
According to MSDN[1], DefWindowProc generates the WM_CONTEXTMENU
message when SHIFT+F10 is typed.
[1] http://msdn.microsoft.com/en-us/library/ms647592.aspx
Signed-off-by: Kusanagi Kouichi <slash at ac.auone-net.jp>
---
dlls/user32/defwnd.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index 39e27b3..8bc1018 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -560,7 +560,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;
--
1.6.5.4
More information about the wine-patches
mailing list