From 86889fd4ebe1c78550a54da7ee92cbd307ab4671 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 23 Nov 2003 16:59:57 +0000 Subject: send quit command instead of key 'q'. catch backspace key instead of ctrl key. keycodes.h says CTRL and BS are the same. this is not true for windows keycodes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11511 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvo/vo_directx.c') diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index fc6e261b1a..6e3e5192ea 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -741,7 +741,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l } case WM_CLOSE: { - mplayer_put_key('q'); + mp_input_queue_cmd(mp_input_parse_cmd("quit")); return 0; } case WM_WINDOWPOSCHANGED: @@ -780,8 +780,8 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l {mplayer_put_key(KEY_DOWN);break;} case VK_TAB: {mplayer_put_key(KEY_TAB);break;} - case VK_CONTROL: - {mplayer_put_key(KEY_CTRL);break;} + case VK_BACK: + {mplayer_put_key(KEY_BS);break;} case VK_DELETE: {mplayer_put_key(KEY_DELETE);break;} case VK_INSERT: -- cgit v1.2.3