Commit 2da17fc8 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix space hotkey for audio files (close #8818)

parent e6de5c7a
......@@ -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__
......
......@@ -193,10 +193,6 @@
eventHandled = YES;
}
}
else if (key == ' ') {
[self play:self];
eventHandled = YES;
}
vlc_object_release(p_vout);
}
vlc_object_release(p_input);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment