[vlc-commits] macosx: handle more playback menu shortcuts by core
David Fuhrmann
git at videolan.org
Mon Apr 22 18:24:05 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Apr 22 18:22:17 2013 +0200| [499ecdbd7202a04b344f48ba5b572f716dbe3a52] | committer: David Fuhrmann
macosx: handle more playback menu shortcuts by core
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=499ecdbd7202a04b344f48ba5b572f716dbe3a52
---
modules/gui/macosx/MainWindow.m | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index c9ade4b..db651df 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -122,7 +122,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
// these are key events which should be handled by vlc core, but are attached to a main menu item
if (![self isEvent: o_event forKey: "key-vol-up"] &&
![self isEvent: o_event forKey: "key-vol-down"] &&
- ![self isEvent: o_event forKey: "key-vol-mute"]) {
+ ![self isEvent: o_event forKey: "key-vol-mute"] &&
+ ![self isEvent: o_event forKey: "key-prev"] &&
+ ![self isEvent: o_event forKey: "key-next"] &&
+ ![self isEvent: o_event forKey: "key-jump+short"] &&
+ ![self isEvent: o_event forKey: "key-jump-short"]) {
/* We indeed want to prioritize some Cocoa key equivalent against libvlc,
so we perform the menu equivalent now. */
if ([[NSApp mainMenu] performKeyEquivalent:o_event])
More information about the vlc-commits
mailing list