]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/misc.m
* Patch from Basil Achermann to handle esc and space keyboard events in VLCControl...
[vlc] / modules / gui / macosx / misc.m
index fd25b6d7863cbd2d54063200f3a76a189465c17f..89cb25ed2cee28fbe29b229b6aab0af6c4386b74 100644 (file)
@@ -26,6 +26,7 @@
 #include "intf.h"                                          /* VLCApplication */
 #include "misc.h"
 #include "playlist.h"
+#include "controls.h"
 
 /*****************************************************************************
  * VLCControllerWindow
@@ -46,7 +47,8 @@
 
 - (BOOL)performKeyEquivalent:(NSEvent *)o_event
 {
-    return [[VLCMain sharedInstance] hasDefinedShortcutKey:o_event];
+    return [[VLCMain sharedInstance] hasDefinedShortcutKey:o_event] ||
+           [(VLCControls *)[[VLCMain sharedInstance] getControls] keyEvent:o_event];
 }
 
 @end