This fixes play/pause toogle with space key, when vlc is or was in (non-lion) fullscreen mode.
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
}
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 );
+ var_Set( p_vout->p_libvlc, "key-pressed", val );
+ }
vlc_object_release( p_vout );
}
else