]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/misc.m
* Mac OS X: intercept and respond to user-configured VLC hotkeys, rather
[vlc] / modules / gui / macosx / misc.m
index 1eaec9463cbc1fa1531cdfb6f95777950b68515c..faf4f5bd1ed3f9c9ad44db26dfdebf9e4c0d1e27 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <Cocoa/Cocoa.h>
 
+#include "intf.h"                                          /* VLCApplication */
 #include "misc.h"
 #include "playlist.h"
 
 
     return( self );
 }
+
+- (BOOL)performKeyEquivalent:(NSEvent *)o_event
+{
+    return [( (VLCApplication *) [VLCApplication sharedApplication] )
+            hasDefinedShortcutKey:o_event];
+}
+
 @end