diff options
author | wm4 <wm4@mplayer2.org> | 2012-04-07 14:50:55 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-04-07 15:46:36 +0200 |
commit | 1d527f0cf25ff51021a6042079cc51b64569585a (patch) | |
tree | 58d561355f316cf595f7970549302a2dfc446222 /libvo | |
parent | 440797ca711d098958dd4d87119c2b6870f0face (diff) | |
download | mpv-1d527f0cf25ff51021a6042079cc51b64569585a.tar.bz2 mpv-1d527f0cf25ff51021a6042079cc51b64569585a.tar.xz |
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.
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/w32_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |