From: David Fuhrmann Date: Thu, 20 Jun 2013 19:51:04 +0000 (+0200) Subject: macosx: fix space hotkey for audio files (close #8818) X-Git-Tag: 2.1.0-git~74 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2da17fc80a465b67c64a45c599ae95084032de78;p=vlc macosx: fix space hotkey for audio files (close #8818) --- 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);