1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 04:42:10 +00:00

cocoa: enqueue events only if input context is present

This commit is contained in:
Stefano Pigozzi 2013-09-01 23:49:25 +02:00
parent a5183a761c
commit 04caddb7c8

View File

@ -159,7 +159,8 @@ void cocoa_uninit_media_keys(void) {
void cocoa_put_key(int keycode)
{
mp_input_put_key(mpv_shared_app().inputContext, keycode);
if (mpv_shared_app().inputContext)
mp_input_put_key(mpv_shared_app().inputContext, keycode);
}
void cocoa_put_key_with_modifiers(int keycode, int modifiers)