mirror of https://github.com/mpv-player/mpv
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:
parent
68200fa565
commit
2fa911a6f5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue