From 1d527f0cf25ff51021a6042079cc51b64569585a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Apr 2012 14:50:55 +0200 Subject: win32: make F10 key not enter the window menu Normally, F10 enters the window menu (it's invisible at first, and the blocking/recursive message handling by Windows makes it look like mplayer was paused, without much visual indication). Stop this almost completely useless behavior by signalling Windows that the F10 key was handled. This makes the F10 key usable as normal mplayer shortcut. This is probably still somewhat questionable. --- libvo/w32_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvo/w32_common.c b/libvo/w32_common.c index dd9a427a64..ff9e2dd505 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -211,6 +211,8 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l int mpkey = lookup_keymap_table(vk_map, wParam); if (mpkey) mplayer_put_key(mpkey | mod_state()); + if (wParam == VK_F10) + return 0; break; } case WM_KEYUP: -- cgit v1.2.3