]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/StringUtility.m
macosx: fix space hotkey for audio files (close #8818)
[vlc] / modules / gui / macosx / StringUtility.m
index 4475d9dcdd6f2ba6e6ca4ccd5bd320ca80411365..4921157b2ef48198aa90c85eff3f7c17b7dcb2df 100644 (file)
@@ -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__