From: Derk-Jan Hartman Date: Sun, 10 Aug 2008 15:55:59 +0000 (+0200) Subject: macosx: fixing hotkey usage. X-Git-Tag: 0.9.0~483 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=135139eaaf6bcb9008f8a6f689bc6ade226a12c7;hp=336fb0358f9407e6389a2077bd7f933eba09fc4d;p=vlc macosx: fixing hotkey usage. Grah, stupid, annoying and more. Simple bugs should be forbidden :D --- diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 3e173e1cce..9f738b0502 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -494,19 +494,16 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, } else if ( p_vout ) { - vlc_value_t val; if( key == ' ') val.i_int = config_GetInt( p_vout, "key-play-pause" ); else - val.i_int |= CocoaKeyToVLC( key ); + val.i_int |= (int)CocoaKeyToVLC( key ); var_Set( p_vout->p_libvlc, "key-pressed", val ); } else NSLog( @"Could not send keyevent to VLC core" ); } else - { [super keyDown: o_event]; - } } - (void)mouseDown:(NSEvent *)o_event