]> git.sesse.net Git - vlc/commitdiff
macosx: fix space hotkey for audio files (close #8818)
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 20 Jun 2013 19:51:04 +0000 (21:51 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 20 Jun 2013 19:52:42 +0000 (21:52 +0200)
modules/gui/macosx/StringUtility.m
modules/gui/macosx/controls.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__
index cc9962780c282cc0432ec47861f82c3dbdc38b55..404446eddf8bb999a3d6621b47200fd0efda03ee 100644 (file)
                             eventHandled = YES;
                         }
                     }
-                    else if (key == ' ') {
-                        [self play:self];
-                        eventHandled = YES;
-                    }
                     vlc_object_release(p_vout);
                 }
                 vlc_object_release(p_input);