From 2da17fc80a465b67c64a45c599ae95084032de78 Mon Sep 17 00:00:00 2001 From: David Fuhrmann Date: Thu, 20 Jun 2013 21:51:04 +0200 Subject: [PATCH] macosx: fix space hotkey for audio files (close #8818) --- modules/gui/macosx/StringUtility.m | 2 ++ modules/gui/macosx/controls.m | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/gui/macosx/StringUtility.m b/modules/gui/macosx/StringUtility.m index 4475d9dcdd..4921157b2e 100644 --- a/modules/gui/macosx/StringUtility.m +++ b/modules/gui/macosx/StringUtility.m @@ -311,6 +311,8 @@ unsigned int CocoaKeyToVLC(unichar i_key) return [NSString stringWithFormat:@"%C", NSF2FunctionKey]; else if ([theString rangeOfString:@"F1"].location != NSNotFound) return [NSString stringWithFormat:@"%C", NSF1FunctionKey]; + else if ([theString rangeOfString:@"Space"].location != NSNotFound) + return @" "; /* note that we don't support esc here, since it is reserved for leaving fullscreen */ } #ifdef __clang__ diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m index cc9962780c..404446eddf 100644 --- a/modules/gui/macosx/controls.m +++ b/modules/gui/macosx/controls.m @@ -193,10 +193,6 @@ eventHandled = YES; } } - else if (key == ' ') { - [self play:self]; - eventHandled = YES; - } vlc_object_release(p_vout); } vlc_object_release(p_input); -- 2.39.2