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.
This commit is contained in:
wm4 2012-04-07 14:50:55 +02:00
parent 440797ca71
commit 1d527f0cf2
1 changed files with 2 additions and 0 deletions

View File

@ -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: