vlc | branch: master | David Fuhrmann <[email protected]> | Thu Jun 20 21:51:04 2013 +0200| [2da17fc80a465b67c64a45c599ae95084032de78] | committer: David Fuhrmann
macosx: fix space hotkey for audio files (close #8818) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2da17fc80a465b67c64a45c599ae95084032de78 --- 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 4475d9d..4921157 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 cc99627..404446e 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); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
