Commit a6c09741 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

MacOS Gui: fix play/pause toogle with space key in fullscreen mode

This fixes play/pause toogle with space key, when vlc is or was in (non-lion) fullscreen mode.
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent c46be236
......@@ -204,11 +204,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
}
else if ( p_vout )
{
if( key == ' ')
val.i_int = config_GetInt( p_vout, "key-play-pause" );
if( key == ' ' )
{
[[VLCCoreInteraction sharedInstance] play];
}
else
{
val.i_int |= (int)CocoaKeyToVLC( key );
var_Set( p_vout->p_libvlc, "key-pressed", val );
}
vlc_object_release( p_vout );
}
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment