vo_corevideo: Send KEY_CLOSE_WIN instead of KEY_ESC for quit

Send KEY_CLOSE_WIN instead of KEY_ESC when the user requested
corevideo to quit, KEY_ESC might have been rebound to something else.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31801 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-07-25 11:07:15 +00:00 committed by Uoti Urpala
parent 68200fa565
commit 2fa911a6f5
1 changed files with 2 additions and 2 deletions

View File

@ -621,7 +621,7 @@ static int control(uint32_t request, void *data)
{
if(sender == kQuitCmd)
{
mplayer_put_key(KEY_ESC);
mplayer_put_key(KEY_CLOSE_WIN);
}
if(sender == kHalfScreenCmd)
@ -1044,6 +1044,6 @@ static int control(uint32_t request, void *data)
- (void)windowWillClose:(NSNotification *)aNotification
{
mpGLView = NULL;
mplayer_put_key(KEY_ESC);
mplayer_put_key(KEY_CLOSE_WIN);
}
@end